blob: b39b9dc70115bbb4beda19544b32569322ee4d2c (
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.31.3
pkgrel=1
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="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
make build VERSION=$pkgver
}
check() {
make test
}
package() {
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="
df2031935eca83cbb1fe6c1b4e1d6ed320feac67ab6b4ffc3a69f6e372f5e374728c924cdd90e6e839376904c5b4a109788b61bab557b1fa48c520ed90d1c6d2 trivy-0.31.3.tar.gz
"
|