community/gocryptfs to 1.8.0-1

This commit is contained in:
Kevin Mihelich 2020-05-09 16:53:20 +00:00
parent 0445379571
commit 2fd4b83a1c

View file

@ -6,33 +6,30 @@
_pkgauthor=rfjakob _pkgauthor=rfjakob
pkgname=gocryptfs pkgname=gocryptfs
pkgver=1.7.1 pkgver=1.8.0
pkgrel=2 pkgrel=1
pkgdesc='Encrypted overlay filesystem written in Go.' pkgdesc='Encrypted overlay filesystem written in Go.'
arch=('x86_64') arch=('x86_64')
url="https://github.com/${_pkgauthor}/${pkgname}" url="https://github.com/${_pkgauthor}/${pkgname}"
license=('MIT') license=('MIT')
depends=('gcc-libs' 'openssl' 'fuse') 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" 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") "${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') 'SKIP')
validpgpkeys=('FFF3E01444FED7C316A3545A895F5BC123A02740') 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() { build() {
export GOPATH="${srcdir}/gopath" cd "${srcdir}/${pkgname}_v${pkgver}_src-deps"
cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
export CGO_LDFLAGS="$LDFLAGS"
export GOFLAGS="-buildmode=pie -trimpath -mod=vendor"
./build.bash ./build.bash
} }
package() { 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
install -Dm755 -t "${pkgdir}/usr/bin/" gocryptfs-xray/gocryptfs-xray install -Dm755 -t "${pkgdir}/usr/bin/" gocryptfs-xray/gocryptfs-xray
install -Dm644 -t "${pkgdir}/usr/share/licenses/gocryptfs" LICENSE install -Dm644 -t "${pkgdir}/usr/share/licenses/gocryptfs" LICENSE