blob: 4a569603765deac81f20828d6e3bfd9ea687a4b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=trivy
pkgver=0.48.2
pkgrel=0
pkgdesc="Simple and comprehensive vulnerability scanner for containers"
url="https://github.com/aquasecurity/trivy"
arch="all"
# s390x: tests SIGSEGV: https://github.com/aquasecurity/trivy/issues/430
arch="$arch !s390x"
license="Apache-2.0"
makedepends="btrfs-progs-dev go linux-headers lvm2-dev"
source="https://github.com/aquasecurity/trivy/archive/v$pkgver/trivy-$pkgver.tar.gz"
options="net !check" # needs tinygo to turn go into wasm for tests
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -o trivy -ldflags "-X main.version=$pkgver" cmd/trivy/main.go
}
check() {
go test ./...
}
package() {
install -Dm755 trivy -t "$pkgdir"/usr/bin/
}
sha512sums="
f6e6355649471afdd51c7058fbc4cb6a3965278023033c4d04cb2e86716c013d011b65a40bb84371d79b45d9bc59ebf78a1f1d97794c0158a60f5eca3e6af54e trivy-0.48.2.tar.gz
"
|