mirror of
https://github.com/archlinux/aur.git
synced 2026-02-12 19:11:17 +01:00
24 lines
840 B
Bash
24 lines
840 B
Bash
# Maintainer: dvb <archlinux at b0rken dot de>
|
|
# Contributor: Emanuele 'Lele aka eldios' Calo' <lele@sshadm.in>
|
|
|
|
pkgname=trufflehog
|
|
pkgver=3.80.4
|
|
pkgrel=2
|
|
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/$pkgver.tar.gz")
|
|
sha512sums=('843f9a6033f5d98318666c644b38ba280c97cdbef68c6a64573675bac09ee1660af6a81299b1f04499d5b5e1a55f2b89ad909df057b183ba8cc660a185bd0311')
|
|
|
|
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"
|
|
}
|