Date: Tuesday, July 26, 2022 @ 14:50:39
  Author: hashworks
Revision: 1258799

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-07-26 14:50:36 UTC (rev 1258798)
+++ PKGBUILD    2022-07-26 14:50:39 UTC (rev 1258799)
@@ -1,47 +0,0 @@
-# Maintainer: Justin Kromlinger <hashwo...@archlinux.org>
-# Contributor: Hao Long <imlong...@archlinuxcn.org>
-
-pkgname=trivy
-pkgver=0.30.2
-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=('device-mapper')
-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=('7ffe60712f3fcb82367209022b03927c401545295c3f613bd923ad6a74ab701091242fda8af7bb917a3540e4e83abdc9e187f904448a7da67b81400758653b9a')
-
-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 1258798, 
trivy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-07-26 14:50:39 UTC (rev 1258799)
@@ -0,0 +1,47 @@
+# Maintainer: Justin Kromlinger <hashwo...@archlinux.org>
+# Contributor: Hao Long <imlong...@archlinuxcn.org>
+
+pkgname=trivy
+pkgver=0.30.3
+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=('device-mapper')
+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=('37cfa82964acb8627b32f55100277eb3abdf1ce7f57141078ba778b802e04d48ab8cea95f15c0fffb5b033bc9d01a1f4a4dabbfd094b7bb8b42929aad1e77eb1')
+
+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