2020-04-05 20:08:38 +00:00
|
|
|
# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
|
|
|
|
# Contributor: Peter Reschenhofer <peter.reschenhofer@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
# - disable documentation build
|
|
|
|
|
|
|
|
_pkgauthor=rfjakob
|
|
|
|
pkgname=gocryptfs
|
2021-10-30 01:37:08 +00:00
|
|
|
pkgver=2.2.1
|
2022-04-27 19:34:28 +00:00
|
|
|
pkgrel=3
|
2020-04-05 20:08:38 +00:00
|
|
|
pkgdesc='Encrypted overlay filesystem written in Go.'
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/${_pkgauthor}/${pkgname}"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('gcc-libs' 'openssl' 'fuse')
|
2020-05-09 16:53:20 +00:00
|
|
|
makedepends=('go')
|
2021-06-07 12:59:42 +00:00
|
|
|
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"
|
|
|
|
)
|
2021-10-30 01:37:08 +00:00
|
|
|
sha256sums=('8d3f66fe426de6b31dfd56122f26047cc8cda679d2fba7bc26d78448701da5e3'
|
2020-04-05 20:08:38 +00:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('FFF3E01444FED7C316A3545A895F5BC123A02740')
|
|
|
|
|
|
|
|
build() {
|
2020-05-09 16:53:20 +00:00
|
|
|
cd "${srcdir}/${pkgname}_v${pkgver}_src-deps"
|
|
|
|
|
|
|
|
export CGO_LDFLAGS="$LDFLAGS"
|
|
|
|
export GOFLAGS="-buildmode=pie -trimpath -mod=vendor"
|
2020-04-05 20:08:38 +00:00
|
|
|
./build.bash
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-05-09 16:53:20 +00:00
|
|
|
cd "${srcdir}/${pkgname}_v${pkgver}_src-deps"
|
2020-04-05 20:08:38 +00:00
|
|
|
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
|
|
|
|
}
|