# Maintainer: Steffen Fritz pkgname=pacaudit pkgver=1.0.0 pkgrel=1 pkgdesc="This package audits installed packages against known vulnerabilities. Use after pacman -Syu." arch=('i686' 'x86_64') url="https://github.com/steffenfritz/pacaudit" license=('GPL3') makedepends=('go') options=('!strip') sha256sums=('ff7983cf99f8654749a642ed7c4a0a41522768d9030d3496c1efe262a9309a90') source=("https://github.com/steffenfritz/pacaudit/archive/v$pkgver.tar.gz") prepare(){ mkdir -p src/github.com/steffenfritz ln -rTsf "${pkgname}-${pkgver}" src/github.com/steffenfritz/pacaudit } build() { 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 -Dm644 "$srcdir"/pacaudit-$pkgver/pacaudit.1 "${pkgdir}/usr/share/man/man1/pacaudit.1" }