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

Christian Rebischke shibumi at gemini.archlinux.org
Mon Jan 17 23:33:47 UTC 2022


    Date: Monday, January 17, 2022 @ 23:33:46
  Author: shibumi
Revision: 1108395

archrelease: copy trunk to community-x86_64

Added:
  syft/repos/community-x86_64/
  syft/repos/community-x86_64/PKGBUILD
    (from rev 1108394, syft/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: syft/repos/community-x86_64/PKGBUILD (from rev 1108394, syft/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-01-17 23:33:46 UTC (rev 1108395)
@@ -0,0 +1,36 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=syft
+pkgver=0.35.1
+pkgrel=1
+pkgdesc="CLI tool and library for generating a Software Bill of Materials from container images and filesystems"
+arch=('x86_64')
+url="https://github.com/anchore/syft"
+license=('Apache')
+makedepends=('go' 'git')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/anchore/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('9a7796622c5a1f96c31bcddf6efd68d1ec93ae6b87d29cdc7d47ed28126f5da5b91e08367632bd3afe7abad55fc3d5eb8d417f6829a71b049d610f6d96b29410')
+b2sums=('5937d6094fa3dac2ef23d0337ee8a4e6d3dce656d3335b29170269c3bc40cbf06936cd09b5843b5f87a55fce35dac61eacf0960a3f8973f32da3b24b4e1f7555')
+
+build(){
+  cd "${pkgname}-${pkgver}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"
+  mkdir build
+  go build -o build/ ./...
+}
+
+# disabled, needs docker
+# check() {
+#  cd "${pkgname}-${pkgver}"
+#  go test -v ./...
+# }
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm755 build/syft "${pkgdir}/usr/bin/${pkgname}"
+}
+



More information about the arch-commits mailing list