[arch-commits] Commit in git-credential-gopass/repos (2 files)

Christian Rebischke shibumi at archlinux.org
Sun Apr 4 17:17:09 UTC 2021


    Date: Sunday, April 4, 2021 @ 17:17:08
  Author: shibumi
Revision: 911761

archrelease: copy trunk to community-x86_64

Added:
  git-credential-gopass/repos/community-x86_64/
  git-credential-gopass/repos/community-x86_64/PKGBUILD
    (from rev 911760, git-credential-gopass/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: git-credential-gopass/repos/community-x86_64/PKGBUILD (from rev 911760, git-credential-gopass/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-04-04 17:17:08 UTC (rev 911761)
@@ -0,0 +1,35 @@
+# Maintainer: christian rebischke <chris.rebischke at 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=('b6200930a08bd6ecea04a4b857ecd51fd5e3f0dfceed0d743ba5f097a73726b8a3f34635e06f3051fdcbf98b9a04dac50a462a2f1edf392b6540ff1387e46ca1')
+
+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"
+}



More information about the arch-commits mailing list