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

Maxim Baz maximbaz at archlinux.org
Sat May 9 16:44:53 UTC 2020


    Date: Saturday, May 9, 2020 @ 16:44:52
  Author: maximbaz
Revision: 626006

upgpkg: gocryptfs 1.8.0-1

Modified:
  gocryptfs/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-09 16:36:14 UTC (rev 626005)
+++ PKGBUILD	2020-05-09 16:44:52 UTC (rev 626006)
@@ -3,32 +3,29 @@
 
 _pkgauthor=rfjakob
 pkgname=gocryptfs
-pkgver=1.7.1
-pkgrel=2
+pkgver=1.8.0
+pkgrel=1
 pkgdesc='Encrypted overlay filesystem written in Go.'
 arch=('x86_64')
 url="https://github.com/${_pkgauthor}/${pkgname}"
 license=('MIT')
 depends=('gcc-libs' 'openssl' 'fuse')
-makedepends=('go-pie' 'pandoc' 'man-db')
+makedepends=('go' 'pandoc' 'man-db')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgauthor}/${pkgname}/releases/download/v${pkgver}/${pkgname}_v${pkgver}_src-deps.tar.gz"
         "${pkgname}-${pkgver}.tar.gz.asc::https://github.com/${_pkgauthor}/${pkgname}/releases/download/v${pkgver}/${pkgname}_v${pkgver}_src-deps.tar.gz.asc")
-sha256sums=('d3fc2c87b869025cd51e4abea030e58e7383197a7458f26bf99a71b224402bda'
+sha256sums=('c4ca576c2a47f0ed395b96f70fb58fc8f7b4beced8ae67e356eeed6898f8352a'
             'SKIP')
 validpgpkeys=('FFF3E01444FED7C316A3545A895F5BC123A02740')
 
-prepare() {
-    mkdir -p "${srcdir}/gopath/src/github.com/${_pkgauthor}"
-    ln -rTsf "${srcdir}/${pkgname}_v${pkgver}_src-deps" "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
-}
+build() {
+    cd "${srcdir}/${pkgname}_v${pkgver}_src-deps"
 
-build() {
-    export GOPATH="${srcdir}/gopath"
-    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
+    export CGO_LDFLAGS="$LDFLAGS"
+    export GOFLAGS="-buildmode=pie -trimpath -mod=vendor"
     make build
 }
 
 package() {
-    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
+    cd "${srcdir}/${pkgname}_v${pkgver}_src-deps"
     make DESTDIR="${pkgdir}" install
 }


More information about the arch-commits mailing list