1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Christian Muehlhaeuser <muesli at gmail dot com>
7 pkgdesc='Disk Usage/Free Utility'
9 url="https://github.com/muesli/$pkgname"
14 _archive="$pkgname-$pkgver"
15 source=("$url/archive/v$pkgver/$_archive.tar.gz")
16 sha256sums=('ebc3880540b25186ace220c09af859f867251f4ecaef435525a141d98d71a27a')
19 local commit=$(zcat ${source[1]##*/} | git get-tar-commit-id)
20 local extraflags="-X main.Version=$pkgver -X main.CommitSHA=$commit"
21 export CGO_CPPFLAGS="$CPPFLAGS"
22 export CGO_CFLAGS="$CFLAGS"
23 export CGO_CXXFLAGS="$CXXFLAGS"
30 -ldflags "-linkmode external $extraflags -extldflags \"$LDFLAGS\"" \
36 install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
37 install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "$pkgname.1"
38 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE