aboutsummaryrefslogtreecommitdiffstats
path: root/testing/trivy/APKBUILD
blob: 1f1ad4b0bca76edf43ed782bcf2bf62b65c60f8c (plain) (blame)
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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=trivy
pkgver=0.18.2
pkgrel=0
pkgdesc="Simple and comprehensive vulnerability scanner for containers"
url="https://github.com/aquasecurity/trivy"
arch="all"
# s390x, mips64: tests SIGSEGV: https://github.com/aquasecurity/trivy/issues/430
arch="$arch !s390x !mips !mips64"
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"

build() {
	make build
}

check() {
	make test
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
30d4508ed0d08b64450c21be97ec286ca77fd2944af21da3aba26a86a3ad0b9aef1a6e781803ca2efbb5f7a73de41616efa2052af92661073ba10bcce8df08ad  trivy-0.18.2.tar.gz
"