[arch-commits] Commit in trivy/repos/community-x86_64 (PKGBUILD PKGBUILD)

Justin Kromlinger hashworks at gemini.archlinux.org
Sun Apr 10 17:56:59 UTC 2022


    Date: Sunday, April 10, 2022 @ 17:56:59
  Author: hashworks
Revision: 1185745

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-10 17:02:50 UTC (rev 1185744)
+++ PKGBUILD	2022-04-10 17:56:59 UTC (rev 1185745)
@@ -1,47 +0,0 @@
-# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
-# Contributor: Hao Long <imlonghao at archlinuxcn.org>
-
-pkgname=trivy
-pkgver=0.25.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=('f7ae15a52bcaa91e5eafd7f86718bfd621a95c2945e049cd9c8d7ba01fead413e567542cb93b56c8fdb409f55d0420ac6765c99e85d756350f133c16c7acd4a2')
-
-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 -ldflags=-linkmode=external -mod=readonly -modcacherw"
-  go build .
-}
-
-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 1185744, trivy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-10 17:56:59 UTC (rev 1185745)
@@ -0,0 +1,47 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+# Contributor: Hao Long <imlonghao at archlinuxcn.org>
+
+pkgname=trivy
+pkgver=0.25.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=('f7ae15a52bcaa91e5eafd7f86718bfd621a95c2945e049cd9c8d7ba01fead413e567542cb93b56c8fdb409f55d0420ac6765c99e85d756350f133c16c7acd4a2')
+
+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 -ldflags=-linkmode=external -mod=readonly -modcacherw"
+  go build .
+}
+
+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}"
+}



More information about the arch-commits mailing list