mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-20 15:22:24 +01:00
32 lines
947 B
Plaintext
32 lines
947 B
Plaintext
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: TBK <alpine@jjtc.eu>
|
|
pkgname=trivy
|
|
pkgver=0.28.0
|
|
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
|
|
# ppc64le: FTBFS: build constraints exclude all Go files in [...]
|
|
# riscv64: modernc.org/libc@v1.14.1 build constraints exclude all Go files
|
|
arch="$arch !s390x !ppc64le !riscv64"
|
|
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 VERSION=$pkgver
|
|
}
|
|
|
|
check() {
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
1b08c929fc8d5cfb7cde4e4660d636e4081d2c04a725021ae8c5fd356152314e5ee2879ef3ba2d541e48d88f0eefc90f71454bf1f98038d72e6652402a6a271f trivy-0.28.0.tar.gz
|
|
"
|