blob: 5f09ea50a5d5b5ad9180168a51dbdd368b2874b5 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Daniel Milde <daniel@milde.cz>
pkgname=gdu-git
_gitname=gdu
pkgver=v4.5.0
pkgrel=1
license=('MIT')
pkgdesc="Fast disk usage analyzer"
makedepends=('go')
arch=('x86_64')
url="https://github.com/Dundee/gdu"
source=("$_gitname::git+https://github.com/Dundee/gdu")
sha256sums=('SKIP')
pkgver() {
cd "$_gitname"
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare(){
cd "$_gitname"
mkdir -p dist/
}
build() {
cd "$_gitname"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
make build VERSION=$pkgver
}
package() {
cd "$_gitname"
install -Dm755 "dist/$_gitname" "${pkgdir}"/usr/bin/$pkgname
install -Dm644 gdu.1 "${pkgdir}"/usr/share/man/man1/$pkgname.1
}
|