[arch-commits] Commit in syft/trunk (PKGBUILD)
Christian Rebischke
shibumi at gemini.archlinux.org
Mon Jan 17 23:33:40 UTC 2022
Date: Monday, January 17, 2022 @ 23:33:40
Author: shibumi
Revision: 1108394
upgpkg: syft 0.35.1-1
Modified:
syft/trunk/PKGBUILD
----------+
PKGBUILD | 53 +++++++++++++----------------------------------------
1 file changed, 13 insertions(+), 40 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-17 23:33:38 UTC (rev 1108393)
+++ PKGBUILD 2022-01-17 23:33:40 UTC (rev 1108394)
@@ -1,18 +1,16 @@
-# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-pkgname=cosign
-pkgver=1.4.1
+pkgname=syft
+pkgver=0.35.1
pkgrel=1
-pkgdesc="Container Signing with support for ephemeral keys and Sigstore signing"
+pkgdesc="CLI tool and library for generating a Software Bill of Materials from container images and filesystems"
arch=('x86_64')
-url="https://github.com/sigstore/cosign"
+url="https://github.com/anchore/syft"
license=('Apache')
-depends=('pcsclite')
makedepends=('go' 'git')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/${pkgname}/archive/v${pkgver}.tar.gz")
-sha512sums=('8728be4395bf35d94c7f428ea3a20b75b02d816d384b83b790a034a93a6c9e884dc8cb7e7e986809a8b1eef2ad740124685060a675b9b23843b11415b6e6d4c3')
-b2sums=('f385230b7a62fd2a58039087607ef69f724f657610c68b2167808591761e67cd6f4fd0eedabfb53a8adcd6c948d76b0fbcd61275e4c70f5f812dbfa806040425')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/anchore/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('9a7796622c5a1f96c31bcddf6efd68d1ec93ae6b87d29cdc7d47ed28126f5da5b91e08367632bd3afe7abad55fc3d5eb8d417f6829a71b049d610f6d96b29410')
+b2sums=('5937d6094fa3dac2ef23d0337ee8a4e6d3dce656d3335b29170269c3bc40cbf06936cd09b5843b5f87a55fce35dac61eacf0960a3f8973f32da3b24b4e1f7555')
build(){
cd "${pkgname}-${pkgver}"
@@ -25,39 +23,14 @@
go build -o build/ ./...
}
-check() {
- cd "${pkgname}-${pkgver}"
- make test
-}
+# disabled, needs docker
+# check() {
+# cd "${pkgname}-${pkgver}"
+# go test -v ./...
+# }
package() {
cd "${pkgname}-${pkgver}"
- install -Dm755 build/cosign "${pkgdir}/usr/bin/${pkgname}"
-
- # build bash completions
- mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
- "$pkgdir"/usr/bin/cosign completion bash > "${pkgdir}/usr/share/bash-completion/completions/cosign"
-
- # build zsh completions
- mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
- "$pkgdir"/usr/bin/cosign completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_cosign"
-
- # build fish completions
- mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
- "$pkgdir"/usr/bin/cosign completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/cosign.fish"
-
- install -Dm755 build/sget "${pkgdir}/usr/bin/sget"
-
- # build bash completions
- mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
- "$pkgdir"/usr/bin/sget completion bash > "${pkgdir}/usr/share/bash-completion/completions/sget"
-
- # build zsh completions
- mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
- "$pkgdir"/usr/bin/sget completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_sget"
-
- # build fish completions
- mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
- "$pkgdir"/usr/bin/sget completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/sget.fish"
+ install -Dm755 build/syft "${pkgdir}/usr/bin/${pkgname}"
}
More information about the arch-commits
mailing list