# Maintainer: Daniel M. Capella pkgname=gitleaks pkgver=1.4.0 pkgrel=1 pkgdesc='Audit Git repos for secrets and keys' url=https://github.com/zricethezav/gitleaks arch=('x86_64') license=('GPL3') depends=('glibc') makedepends=('go-pie') source=("gitleaks-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha512sums=('fdc32376e07925e109beb9941f749a7847920f2fba3b4ed1572aae67b63d486cd89ad01867f2144e7451b58db24bfced49817de02bbb18150f17302a1aae1034') prepare() { mkdir -p src/github.com/zricethezav ln -rsnf gitleaks-$pkgver src/${url#*//} } build() { cd src/${url#*//} export GOPATH="$srcdir" go build -v } package() { cd gitleaks-$pkgver install -Dm755 gitleaks "$pkgdir"/usr/bin/gitleaks } # vim:set ts=2 sw=2 et: