grype
LOW
maintainer barbuk
0 votes
scanned 2026-09-07 07:13:50.910258
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Julien Virey <julien.virey+aur@gmail.com>
2
3
pkgname='grype'
4
pkgver=0.118.0
5
pkgrel=1
6
pkgdesc='A vulnerability scanner for container images and filesystems.'
7
url='https://github.com/anchore/grype'
8
license=(Apache-2.0)
9
arch=(aarch64 x86_64)
10
depends=(glibc)
11
makedepends=(go)
12
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
13
sha256sums=('6963758836cd46fd019d4c5e2eb903ec26960c34814a35058ebea56971dc592c')
14
15
prepare() {
16
cd "${pkgname}-${pkgver}/cmd/$pkgname"
17
export GOMODCACHE="${GOMODCACHE:-$srcdir/gomod}"
18
go mod download -modcacherw
19
}
20
21
build() {
22
cd "${pkgname}-${pkgver}/cmd/$pkgname"
23
export CGO_CPPFLAGS="${CPPFLAGS}"
24
export CGO_CFLAGS="${CFLAGS}"
25
export CGO_CXXFLAGS="${CXXFLAGS}"
26
export CGO_LDFLAGS="${LDFLAGS}"
27
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
28
go build \
29
-ldflags="-linkmode=external -X main.version=v${pkgver}" \
30
-o "$pkgname" .
31
}
32
33
package() {
34
cd "${pkgname}-${pkgver}"
35
install -Dm755 "cmd/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
36
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
37
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
38
39
go clean -modcache
40
}
41
42
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-07 07:13:50 | Low | 1 |