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

Christian Rebischke shibumi at gemini.archlinux.org
Fri Nov 12 21:16:43 UTC 2021


    Date: Friday, November 12, 2021 @ 21:16:43
  Author: shibumi
Revision: 1044839

archrelease: copy trunk to community-x86_64

Added:
  cosign/repos/community-x86_64/PKGBUILD
    (from rev 1044838, cosign/trunk/PKGBUILD)
Deleted:
  cosign/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-12 21:16:37 UTC (rev 1044838)
+++ PKGBUILD	2021-11-12 21:16:43 UTC (rev 1044839)
@@ -1,36 +0,0 @@
-# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-
-pkgname=cosign
-pkgver=1.3.0
-pkgrel=1
-pkgdesc="Container Signing with support for ephemeral keys and Sigstore signing"
-arch=('x86_64')
-url="https://github.com/sigstore/cosign"
-license=('Apache')
-depends=('pcsclite')
-makedepends=('go' 'git')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/${pkgname}/archive/v${pkgver}.tar.gz")
-sha512sums=('d9ef11e22e7cb874ba8d0b4af9eabefbcc42341acd1d5c2645905fb420801fe8ff6e5f580548a9b562a5f5f5db71a9c8cb50e9a013d903b80fa2d969d866e3ff')
-b2sums=('4f9f8b5d67df72a1e19db82fa57b3a65e1c32b9c11913470d7e7b5d2c4b3af00e05493b59ff3da17ff56f6f14528b67dc0550c66e138c1c05f0df3226128bf95')
-
-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/ ./...
-}
-
-check() {
-  cd "${pkgname}-${pkgver}"
-  make test
-}
-
-package() {
-  cd "${pkgname}-${pkgver}"
-  install -Dm755 build/cosign "${pkgdir}/usr/bin/${pkgname}"
-}

Copied: cosign/repos/community-x86_64/PKGBUILD (from rev 1044838, cosign/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-12 21:16:43 UTC (rev 1044839)
@@ -0,0 +1,63 @@
+# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=cosign
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="Container Signing with support for ephemeral keys and Sigstore signing"
+arch=('x86_64')
+url="https://github.com/sigstore/cosign"
+license=('Apache')
+depends=('pcsclite')
+makedepends=('go' 'git')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('980ca972b7d66daea0788a7c8fa738ada5837102db29c8651f5e1b33d8ecb0e43dd8705ed9ec507f1cc2bb9e78ede87344a87640123f4395560dc4fb6b0db55a')
+b2sums=('71fd393a2e810edae0f198992aca00bbf73a55240e15125b5b82695dfbe0bfcaa3084bc5b8e14d9bc07cfd4a10b81aec014e4ac8b972d8dd96dd8e4159fb02ad')
+
+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/ ./...
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  make test
+}
+
+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"
+}
+



More information about the arch-commits mailing list