From 2fd4b83a1c3984aaa778d80ec3a1fbbac0859450 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 9 May 2020 16:53:20 +0000 Subject: [PATCH] community/gocryptfs to 1.8.0-1 --- community/gocryptfs/PKGBUILD | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/community/gocryptfs/PKGBUILD b/community/gocryptfs/PKGBUILD index d33459b5d..af582efc2 100644 --- a/community/gocryptfs/PKGBUILD +++ b/community/gocryptfs/PKGBUILD @@ -6,33 +6,30 @@ _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') +makedepends=('go') 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() { - export GOPATH="${srcdir}/gopath" - cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}" + cd "${srcdir}/${pkgname}_v${pkgver}_src-deps" + + export CGO_LDFLAGS="$LDFLAGS" + export GOFLAGS="-buildmode=pie -trimpath -mod=vendor" ./build.bash } package() { - cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}" + cd "${srcdir}/${pkgname}_v${pkgver}_src-deps" install -Dm755 -t "${pkgdir}/usr/bin/" gocryptfs install -Dm755 -t "${pkgdir}/usr/bin/" gocryptfs-xray/gocryptfs-xray install -Dm644 -t "${pkgdir}/usr/share/licenses/gocryptfs" LICENSE