# Contributor: Clayton Craft # Maintainer: Clayton Craft pkgname=gosec pkgver=2.16.0 pkgrel=2 pkgdesc="Go source code static analyzer, focusing on security" url="https://github.com/securego/gosec" arch="all" license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/securego/gosec/archive/refs/tags/v$pkgver.tar.gz" # downloads go deps into GOBIN and runs them options="!check" export GOBIN=/tmp export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make PREFIX="/usr" VERSION="$pkgver" } check() { make test } package() { install -Dm755 gosec -t "$pkgdir"/usr/bin } sha512sums=" 4563c095e4af102bb4820e55ad99ea32486dabb3090a1ac923dd8ae1a5c870861f2accf637dd2215dc35b89a87ebb229d51b3acdb005a8b11c1f1d047b70e581 gosec-2.16.0.tar.gz "