[arch-commits] Commit in gopass/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Mon Jul 13 14:38:13 UTC 2020


    Date: Monday, July 13, 2020 @ 14:38:13
  Author: foxboron
Revision: 663411

upgpkg: gopass 1.9.2-3 - reproducible builds fixup

I suspect mixing old-style trimpaths and new-style trimpaths causes the
internal buildid hash to change. Remove them!

Modified:
  gopass/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-13 13:18:39 UTC (rev 663410)
+++ PKGBUILD	2020-07-13 14:38:13 UTC (rev 663411)
@@ -2,7 +2,7 @@
 
 pkgname=gopass
 pkgver=1.9.2
-pkgrel=2
+pkgrel=3
 pkgdesc="The slightly more awesome standard unix password manager for teams."
 arch=('x86_64')
 url="https://github.com/gopasspw/gopass"
@@ -14,16 +14,19 @@
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gopasspw/gopass/archive/v${pkgver}.tar.gz")
 sha512sums=('90be234718c4c26ee6e92565ce609d5f075d5e574827e15ff57a6d9e71f1933add7d76aa26b39602d5a72485890bfe8e158dc89213098377899d0f721aacf1d7')
 
+prepare(){
+  cd "${pkgname}-${pkgver}"
+  sed -i 's|-gcflags="-trimpath=$(GOPATH)" -asmflags="-trimpath=$(GOPATH)"||' Makefile
+}
+
 build(){
   cd "${pkgname}-${pkgver}"
-  export GOPATH="${srcdir}"
   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 build
-  make completion
+  make 
 }
 
 package() {



More information about the arch-commits mailing list