[arch-commits] Commit in (4 files)
Christian Rebischke
shibumi at archlinux.org
Sun Apr 4 17:04:45 UTC 2021
Date: Sunday, April 4, 2021 @ 17:04:45
Author: shibumi
Revision: 911754
add gopass-jsonapi
Added:
gopass-jsonapi/
gopass-jsonapi/repos/
gopass-jsonapi/trunk/
gopass-jsonapi/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Added: gopass-jsonapi/trunk/PKGBUILD
===================================================================
--- gopass-jsonapi/trunk/PKGBUILD (rev 0)
+++ gopass-jsonapi/trunk/PKGBUILD 2021-04-04 17:04:45 UTC (rev 911754)
@@ -0,0 +1,34 @@
+# Maintainer: christian rebischke <chris.rebischke at archlinux.org>
+
+pkgname=gopass-jsonapi
+pkgver=1.11.1
+pkgrel=1
+pkgdesc="jsonapi for gopass used for bridging to browsers"
+arch=('x86_64')
+url="https://github.com/gopasspw/gopass-jsonapi"
+license=('MIT')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gopasspw/gopass-jsonapi/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"
+}
More information about the arch-commits
mailing list