Date: Wednesday, February 1, 2023 @ 11:43:32
  Author: hashworks
Revision: 1391725

archrelease: copy trunk to community-x86_64

Added:
  trivy/repos/community-x86_64/PKGBUILD
    (from rev 1391724, trivy/trunk/PKGBUILD)
Deleted:
  trivy/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   94 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 47 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-01 11:43:24 UTC (rev 1391724)
+++ PKGBUILD    2023-02-01 11:43:32 UTC (rev 1391725)
@@ -1,47 +0,0 @@
-# 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}"
-}

Copied: trivy/repos/community-x86_64/PKGBUILD (from rev 1391724, 
trivy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-01 11:43:32 UTC (rev 1391725)
@@ -0,0 +1,47 @@
+# Maintainer: Justin Kromlinger <[email protected]>
+# Contributor: Hao Long <[email protected]>
+
+pkgname=trivy
+pkgver=0.37.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=('ecc5fd418b7ce618bbe98802d6036accb778b54b6f4e37ee244c2034f670b79a7d6cac94f1fc43e1628974ab5d7c4b9aa0689f7f9f25fb813a4adf320537e9ce')
+
+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}"
+}

Reply via email to