blob: ee8a98e0f5a5ed4762a22cbe23b49c57a0af1a16 (
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
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=trivy
pkgver=0.5.2
pkgrel=0
pkgdesc="A Simple and Comprehensive Vulnerability Scanner for Containers, Suitable for CI"
url="https://github.com/aquasecurity/trivy"
arch="all !s390x" # tests SIGSEGV on s390x
license="AGPL-3.0-or-later"
makedepends="btrfs-progs-dev go linux-headers lvm2-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/aquasecurity/trivy/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/aquasecurity/$pkgname"
prepare() {
mkdir -p "$srcdir/src/github.com/aquasecurity/"
ln -sf "$srcdir/$pkgname-$pkgver" "$srcdir/src/github.com/aquasecurity/$pkgname"
default_prepare
}
build() {
make build
}
check() {
make test
}
package() {
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="e0b92a064564c02a293cdaa31abc7c7416655c22bbd5c7dce2a89b7c07fe9471bc80425a156f22f4f04cc5c8725933379138bc2e187e7813ab20cc7d75b895c8 trivy-0.5.2.tar.gz"
|