aboutsummaryrefslogtreecommitdiffstats
path: root/testing/duf/APKBUILD
blob: fa1556f62cea6d05de57bd6ca1c5033ceeed1456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=duf
pkgver=0.8.1
pkgrel=2
pkgdesc="Disk Usage/Free Utility"
options="net !check" # No testsuite
url="https://github.com/muesli/duf"
license="MIT"
arch="all"
makedepends="go"
source="https://github.com/muesli/duf/archive/v$pkgver/duf-$pkgver.tar.gz"

build() {
	go build \
		-trimpath \
		-ldflags "-X main.Version=$pkgver -extldflags \"$LDFLAGS\"" \
		-o duf
}

package() {
	install -Dm755 duf -t "$pkgdir"/usr/bin
}

sha512sums="
598318cd90e8a27bdc448cb84682f3846baa02bab0f527a26de42b8b3efd3ba258a76b6f7a74a41405e20b23ccff92db1b6ef7d3412fc8261942a8ccde4241dc  duf-0.8.1.tar.gz
"