[arch-commits] Commit in (4 files)

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


    Date: Sunday, April 4, 2021 @ 17:19:04
  Author: shibumi
Revision: 911762

add gopass-hibp

Added:
  gopass-hibp/
  gopass-hibp/repos/
  gopass-hibp/trunk/
  gopass-hibp/trunk/PKGBUILD

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

Added: gopass-hibp/trunk/PKGBUILD
===================================================================
--- gopass-hibp/trunk/PKGBUILD	                        (rev 0)
+++ gopass-hibp/trunk/PKGBUILD	2021-04-04 17:19:04 UTC (rev 911762)
@@ -0,0 +1,35 @@
+# Maintainer: christian rebischke <chris.rebischke at archlinux.org>
+
+pkgname=gopass-hibp
+pkgver=1.12.0
+pkgrel=1
+pkgdesc="haveibeenpwnd.com integration for gopass"
+arch=('x86_64')
+url="https://github.com/gopasspw/gopass-hibp"
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gopasspw/gopass-hibp/archive/refs/tags/v${pkgver}.tar.gz")
+sha512sums=('cb5a5af5fe7f0c10d4afbf4835d8e88604d57e0ba593d2d2211f8e1bce3db6f0883802f9e8421a45ad985ae81b3ac940361678f8982d45436f2e5a625c7197f7')
+
+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