APKBUILD 794 Bytes
Newer Older
TBK's avatar
TBK committed
1 2 3
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=trivy
4
pkgver=0.18.1
5
pkgrel=0
6
pkgdesc="Simple and comprehensive vulnerability scanner for containers"
TBK's avatar
TBK committed
7
url="https://github.com/aquasecurity/trivy"
Leo's avatar
Leo committed
8
arch="all"
Kevin Daudt's avatar
Kevin Daudt committed
9 10
# s390x, mips64: tests SIGSEGV: https://github.com/aquasecurity/trivy/issues/430
arch="$arch !s390x !mips !mips64"
Kevin Daudt's avatar
Kevin Daudt committed
11
license="Apache-2.0"
TBK's avatar
TBK committed
12
makedepends="btrfs-progs-dev go linux-headers lvm2-dev"
13
source="https://github.com/aquasecurity/trivy/archive/v$pkgver/trivy-$pkgver.tar.gz"
TBK's avatar
TBK committed
14 15 16 17 18 19 20 21 22 23 24 25 26

build() {
	make build
}

check() {
	make test
}

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

27
sha512sums="
28
27986cea0440f8523a4689ec17e57fe0f3b8e2d1343410d564fc3809d538a16f973382b749991b3b4a94a9e11926c124db9ce6639711dbcda8d2e086d2d8af1a  trivy-0.18.1.tar.gz
29
"