# Maintainer: Peter Reschenhofer pkgname=gocryptfs pkgver=1.6 pkgrel=1 pkgdesc="Encrypted overlay filesystem written in Go." arch=('i686' 'x86_64' 'armv7h') url="https://github.com/rfjakob/gocryptfs" license=('MIT') depends=('gcc-libs' 'openssl' 'fuse') makedepends=('git' 'go') source=("$pkgname-git::git+https://github.com/rfjakob/gocryptfs.git#tag=v${pkgver}" "gocryptfs.1") md5sums=('SKIP' '3538f2918067705951168dcc4c3a3ba6') prepare() { export GOPATH="$PWD/GO" mkdir -p $GOPATH/src/github.com/rfjakob ln -sf $PWD/$pkgname-git $GOPATH/src/github.com/rfjakob/ go get -d github.com/rfjakob/gocryptfs } build() { export GOPATH="$PWD/GO" go get -d github.com/hanwen/go-fuse/fuse $GOPATH/src/github.com/rfjakob/gocryptfs/build.bash } package() { install -Dm755 "$PWD/GO/bin/gocryptfs" "$pkgdir/usr/bin/gocryptfs" install -Dm644 "gocryptfs.1" "$pkgdir/usr/share/man/man1/gocryptfs.1" }