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

Justin Kromlinger hashworks at gemini.archlinux.org
Sat Apr 2 14:13:43 UTC 2022


    Date: Saturday, April 2, 2022 @ 14:13:43
  Author: hashworks
Revision: 1180811

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-02 14:13:40 UTC (rev 1180810)
+++ PKGBUILD	2022-04-02 14:13:43 UTC (rev 1180811)
@@ -1,47 +0,0 @@
-# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
-# Contributor: Hao Long <imlonghao at archlinuxcn.org>
-
-pkgname=trivy
-pkgver=0.25.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=('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=('38cda5c6def31ea7c27207cd618daf069c79321830ed5bd0e53778f5b4fb55d1f777a3788e8d6cc201f540cb99b60f6ce6b4304f22478e83a08ea2f5674d5cb6')
-
-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 1180810, trivy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-02 14:13:43 UTC (rev 1180811)
@@ -0,0 +1,47 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+# Contributor: Hao Long <imlonghao at archlinuxcn.org>
+
+pkgname=trivy
+pkgver=0.25.0
+pkgrel=2
+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=('38cda5c6def31ea7c27207cd618daf069c79321830ed5bd0e53778f5b4fb55d1f777a3788e8d6cc201f540cb99b60f6ce6b4304f22478e83a08ea2f5674d5cb6')
+
+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