# Maintainer: dvb # Contributor: Emanuele 'Lele aka eldios' Calo' pkgname=trufflehog pkgver=3.67.6 pkgrel=1 pkgdesc="Tool for finding secrets like private keys and credentials." arch=('x86_64') url="https://github.com/trufflesecurity/trufflehog" license=('AGPL3') depends=('glibc') makedepends=('go') provides=('trufflehog') source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha512sums=('bf827408ff6e8311f6d045ea473e4d0b409a64ad102c43f3dc991b5c068008196b41a8ee99e0d3e377c3043a85f0d757db04646039c88e3d962febd4f74a7275') build() { cd "$pkgname-$pkgver" GOPATH="$srcdir/build" go build -buildmode=pie -ldflags "-linkmode=external -extldflags \"$LDFLAGS\"" -modcacherw -trimpath } package() { install -Dm755 "$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname" }