mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 15:04:14 +02:00
34 lines
917 B
Text
34 lines
917 B
Text
# Contributor: Clayton Craft <clayton@craftyguy.net>
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=gosec
|
|
pkgver=2.22.3
|
|
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 net"
|
|
|
|
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="
|
|
7dacf2f91a753b3ebe19d47eccaee9d75b8e84ac1582c433321eede6dea28513d68aaaee7579aab21e7f6839c2a1cfc7b5465c79243377cc45d87a7a4dba5d31 gosec-2.22.3.tar.gz
|
|
"
|