Date: Thursday, August 19, 2021 @ 13:19:16 Author: kpcyrd Revision: 1003834
archrelease: copy trunk to community-x86_64 Added: rekor/repos/community-x86_64/PKGBUILD (from rev 1003833, rekor/trunk/PKGBUILD) Deleted: rekor/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 91 +++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 56 insertions(+), 35 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-08-19 13:19:02 UTC (rev 1003833) +++ PKGBUILD 2021-08-19 13:19:16 UTC (rev 1003834) @@ -1,35 +0,0 @@ -# Maintainer: Santiago Torres-Arias <santi...@archlinux.org> -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> - -pkgname=rekor -pkgver=0.3.0 -pkgrel=1 -pkgdesc="Signature Transparency Log -- Sigstore client and server tools" -arch=('x86_64') -url="https://github.com/sigstore/rekor-cli" -license=('Apache') -makedepends=('go' 'git' 'openssh') # for tests -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/rekor/archive/v${pkgver}.tar.gz") -sha256sums=('13a320256b2dffb21dd97c95d7284c71e98d3f4f5a582f9e35cfe40852242ea8') - -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" - go build -o cmd/rekor-cli/rekor-cli cmd/rekor-cli/main.go - go build -o cmd/rekor-server/rekor-server cmd/rekor-server/main.go -} - -check() { - cd "${pkgname}-${pkgver}" - go test -v ./... -} - -package() { - cd "${pkgname}-${pkgver}" - install -Dsm755 cmd/rekor-cli/rekor-cli "${pkgdir}/usr/bin/rekor-cli" - install -Dsm755 cmd/rekor-server/rekor-server "${pkgdir}/usr/bin/rekor-server" -} Copied: rekor/repos/community-x86_64/PKGBUILD (from rev 1003833, rekor/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-08-19 13:19:16 UTC (rev 1003834) @@ -0,0 +1,56 @@ +# Maintainer: Santiago Torres-Arias <santi...@archlinux.org> +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> + +pkgname=rekor +pkgver=0.3.0 +pkgrel=2 +pkgdesc="Signature Transparency Log -- Sigstore client and server tools" +arch=('x86_64') +url="https://github.com/sigstore/rekor" +license=('Apache') +makedepends=('go' 'git') +checkdepends=('openssh') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/rekor/archive/v${pkgver}.tar.gz" + # fix for shell completions + https://github.com/sigstore/rekor/pull/417/commits/45e972db2f16873f39d56ce10076c09a01d2f807.patch) +sha256sums=('13a320256b2dffb21dd97c95d7284c71e98d3f4f5a582f9e35cfe40852242ea8' + '06ba3e91f4262fd556c2d722aee15f91b97057878cdf59479a02be54477b2f62') + +prepare() { + cd "${pkgname}-${pkgver}" + patch -Np1 -i ../45e972db2f16873f39d56ce10076c09a01d2f807.patch +} + +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" + go build -o cmd/rekor-cli/rekor-cli cmd/rekor-cli/main.go + go build -o cmd/rekor-server/rekor-server cmd/rekor-server/main.go +} + +check() { + cd "${pkgname}-${pkgver}" + go test -v ./... +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dsm755 cmd/rekor-cli/rekor-cli "${pkgdir}/usr/bin/rekor-cli" + install -Dsm755 cmd/rekor-server/rekor-server "${pkgdir}/usr/bin/rekor-server" + + install -d "${pkgdir}/usr/share/bash-completion/completions" \ + "${pkgdir}/usr/share/zsh/site-functions" \ + "${pkgdir}/usr/share/fish/vendor_completions.d" + + "${pkgdir}/usr/bin/rekor-cli" completion bash > "${pkgdir}/usr/share/bash-completion/completions/rekor-cli" + "${pkgdir}/usr/bin/rekor-cli" completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_rekor-cli" + "${pkgdir}/usr/bin/rekor-cli" completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/rekor-cli.fish" + + "${pkgdir}/usr/bin/rekor-server" completion bash > "${pkgdir}/usr/share/bash-completion/completions/rekor-server" + "${pkgdir}/usr/bin/rekor-server" completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_rekor-server" + "${pkgdir}/usr/bin/rekor-server" completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/rekor-server.fish" +}