Date: Saturday, July 30, 2022 @ 20:40:33 Author: shibumi Revision: 1259213
archrelease: copy trunk to community-x86_64 Added: gitsign/repos/community-x86_64/ gitsign/repos/community-x86_64/PKGBUILD (from rev 1259212, gitsign/trunk/PKGBUILD) ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Copied: gitsign/repos/community-x86_64/PKGBUILD (from rev 1259212, gitsign/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2022-07-30 20:40:33 UTC (rev 1259213) @@ -0,0 +1,30 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contriubutor: Jamie Magee <jamie dot magee at gmail dot com> + +pkgname=gitsign +pkgver=0.2.0 +pkgrel=2 +pkgdesc='Keyless Git signing using Sigstore' +arch=('x86_64') +url='https://github.com/sigstore/gitsign' +license=(APACHE) +makedepends=(go) +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz") +b2sums=('ac0e38a269e30a2334efb971d3ec9281ea0fe6d90a14278c3f76cdb755f57d504dd9a2779d87d33d209f889fd3589899f5a2cae7f3733d7ae114f35e4a787733') + +build() { + cd $pkgname-$pkgver + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + make build-all +} + +package() { + cd $pkgname-$pkgver + + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}