Date: Sunday, April 4, 2021 @ 17:14:48 Author: shibumi Revision: 911757
add git-credential-gopass Added: git-credential-gopass/ git-credential-gopass/repos/ git-credential-gopass/trunk/ git-credential-gopass/trunk/PKGBUILD ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Added: git-credential-gopass/trunk/PKGBUILD =================================================================== --- git-credential-gopass/trunk/PKGBUILD (rev 0) +++ git-credential-gopass/trunk/PKGBUILD 2021-04-04 17:14:48 UTC (rev 911757) @@ -0,0 +1,35 @@ +# Maintainer: christian rebischke <chris.rebisc...@archlinux.org> + +pkgname=git-credential-gopass +pkgver=1.12.0 +pkgrel=1 +pkgdesc="git-credentials helper for gopass" +arch=('x86_64') +url="https://github.com/gopasspw/git-credential-gopass" +license=('MIT') +depends=('glibc') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gopasspw/git-credential-gopass/archive/refs/tags/v${pkgver}.tar.gz") +sha512sums=('231585e4e6de51a7f98218d80cc805d71e4b61e5ec1eff7dfeab8ed2cc2a031ee21c58f2cf9e5e081dc24e7b90ffe7bd59ac7522fee1a3eeff187534c7eb0cc1') + +prepare(){ + cd ${pkgname}-${pkgver} + sed -i 's|-gcflags="-trimpath=$(GOPATH)" -asmflags="-trimpath=$(GOPATH)"||' Makefile + sed -i 's/install-completion//g' Makefile +} + +build(){ + cd ${pkgname}-${pkgver} + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" PREFIX="/usr" install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}