diff options
author | balaraz | 2023-12-13 21:57:40 +0200 |
---|---|---|
committer | balaraz | 2023-12-13 21:57:40 +0200 |
commit | d8ecd81350eddacda67709113e32d83318b64bd8 (patch) | |
tree | b9628162667fa47eb96a4eab5ce610fa13d85046 | |
parent | 09c6fcd6ed42bb86c194108b8f938192ceb90d7f (diff) | |
download | aur-d8ecd81350eddacda67709113e32d83318b64bd8.tar.gz |
Use make for build and install
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 6 insertions, 11 deletions
@@ -1,12 +1,13 @@ pkgbase = sof pkgdesc = Simple and fast calculate size of directories pkgver = 3.1 - pkgrel = 1 + pkgrel = 2 url = https://codeberg.org/balaraz/sof arch = x86_64 license = GPL3 makedepends = go makedepends = gzip + makedepends = make provides = sof provides = sof.1.gz source = sof-3.1.tar.gz::https://codeberg.org/balaraz/sof/archive/v3.1.tar.gz @@ -2,25 +2,19 @@ pkgname=sof pkgver=3.1 -pkgrel=1 +pkgrel=2 pkgdesc="Simple and fast calculate size of directories" license=(GPL3) url="https://codeberg.org/balaraz/sof" arch=(x86_64) depends=() -makedepends=(go gzip) +makedepends=(go gzip make) provides=(sof sof.1.gz) conflicts=() source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=("7acc70d461d13b3c19ad2c066e2a0117831e309d55da893f8b7fcb79b42d63ae") package() { - go build \ - --ldflags="-s -w" \ - -buildmode=pie \ - -trimpath \ - -o ${pkgdir}/usr/bin/${pkgname} \ - $pkgname/main.go - gzip $pkgname/man/$pkgname.1 - install -Dm644 $pkgname/man/$pkgname.1.gz -t $pkgdir/usr/share/man/man1/ + make -C ./sof + DESTDIR="$pkgdir" make -C ./sof PREFIX="/usr" install install-man } |