Date: Saturday, December 31, 2022 @ 13:16:50
Author: hashworks
Revision: 1372665
archrelease: copy trunk to community-x86_64
Added:
trivy/repos/community-x86_64/PKGBUILD
(from rev 1372664, trivy/trunk/PKGBUILD)
Deleted:
trivy/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 94 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 47 insertions(+), 47 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-31 13:16:40 UTC (rev 1372664)
+++ PKGBUILD 2022-12-31 13:16:50 UTC (rev 1372665)
@@ -1,47 +0,0 @@
-# Maintainer: Justin Kromlinger <[email protected]>
-# Contributor: Hao Long <[email protected]>
-
-pkgname=trivy
-pkgver=0.35.0
-pkgrel=1
-pkgdesc='A Simple and Comprehensive Vulnerability Scanner for Containers,
Suitable for CI'
-arch=('x86_64')
-url='https://github.com/aquasecurity/trivy'
-license=('Apache')
-depends=('glibc')
-optdepends=('rpm: RHEL/CentOS based image support')
-makedepends=('go' 'btrfs-progs')
-provides=('trivy')
-conflicts=('trivy')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-b2sums=('b102dfbc823f0eef89ca8c8d7d481fc6a3e898365d6d6be5745e921ed1726e5fa4807e421cd71b5df6d112de81c828038a9b6c6d822108d0be51bda921f0de8d')
-
-prepare() {
- cd ${pkgname}-${pkgver}
-
- find docs -type f -name "*.md" \
- -exec sed
"s|\(../\)*imgs/\(.*\.[a-z]\{3\}\)|${url}/raw/main/docs/imgs/\2|g" -i {} \;
-
- rm -Rf docs/{build,imgs}
-}
-
-build() {
- cd ${pkgname}-${pkgver}/cmd/trivy
-
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- export CGO_LDFLAGS="${LDFLAGS}"
- export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
- go build -ldflags "-linkmode=external -s -w -X=main.version=${pkgver}" .
-}
-
-package() {
- cd ${pkgname}-${pkgver}
-
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm755 "cmd/trivy/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
-
- mkdir -p "${pkgdir}/usr/share/doc"
- cp -r docs "${pkgdir}/usr/share/doc/${pkgname}"
-}
Copied: trivy/repos/community-x86_64/PKGBUILD (from rev 1372664,
trivy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-31 13:16:50 UTC (rev 1372665)
@@ -0,0 +1,47 @@
+# Maintainer: Justin Kromlinger <[email protected]>
+# Contributor: Hao Long <[email protected]>
+
+pkgname=trivy
+pkgver=0.36.0
+pkgrel=1
+pkgdesc='A Simple and Comprehensive Vulnerability Scanner for Containers,
Suitable for CI'
+arch=('x86_64')
+url='https://github.com/aquasecurity/trivy'
+license=('Apache')
+depends=('glibc')
+optdepends=('rpm: RHEL/CentOS based image support')
+makedepends=('go' 'btrfs-progs')
+provides=('trivy')
+conflicts=('trivy')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+b2sums=('182d5e2514af4c62077710e05fe1340948453287e17d9196a68d5dc01bf184e13e2ef3ea7c1976b9ac2cc3575d560ea87c764206f14cbc2b2e6862a1f4490cc2')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ find docs -type f -name "*.md" \
+ -exec sed
"s|\(../\)*imgs/\(.*\.[a-z]\{3\}\)|${url}/raw/main/docs/imgs/\2|g" -i {} \;
+
+ rm -Rf docs/{build,imgs}
+}
+
+build() {
+ cd ${pkgname}-${pkgver}/cmd/trivy
+
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ go build -ldflags "-linkmode=external -s -w -X=main.version=${pkgver}" .
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm755 "cmd/trivy/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+
+ mkdir -p "${pkgdir}/usr/share/doc"
+ cp -r docs "${pkgdir}/usr/share/doc/${pkgname}"
+}