diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 13 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = pacaudit pkgdesc = This package audits installed packages against known vulnerabilities. Use after pacman -Syu. pkgver = 0.4.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/steffenfritz/pacaudit arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Steffen Fritz <aur AT fritz DOT wtf> pkgname=pacaudit pkgver=0.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="This package audits installed packages against known vulnerabilities. Use after pacman -Syu." arch=('i686' 'x86_64') url="https://github.com/steffenfritz/pacaudit" @@ -15,12 +15,20 @@ sha256sums=('9512deb8b29e09aa2312661e5d8c5c0c331e2975110582f407e8482c7d471c4c' source=("https://github.com/steffenfritz/pacaudit/archive/v$pkgver.tar.gz" "https://fritz.wtf/v$pkgver.tar.gz.asc") + + +prepare(){ + mkdir -p src/github.com/steffenfritz + ln -rTsf "${pkgname}-${pkgver}" src/github.com/steffenfritz/pacaudit +} + build() { - cd pacaudit-$pkgver - go build -o pacaudit -ldflags "-s -w" + export GOPATH="${srcdir}" + cd src/github.com/steffenfritz/pacaudit + go build -o pacaudit -ldflags "-s -w" -buildmode=pie } package() { - install -Dm755 "$srcdir"/pacaudit-$pkgver/pacaudit "$pkgdir"/usr/bin/pacaudit + install -Dm755 "$srcdir"/pacaudit-${pkgver}/pacaudit "$pkgdir/usr/bin/pacaudit" install -Dm644 "$srcdir"/pacaudit-$pkgver/pacaudit.1 "${pkgdir}/usr/share/man/man1/pacaudit.1" } |