diff options
author | petres | 2016-05-26 00:31:59 +0200 |
---|---|---|
committer | petres | 2016-05-26 00:31:59 +0200 |
commit | 182152b8bed8dabef90e7117ec642478676bcba0 (patch) | |
tree | 0af7b9a286de27c1faff37fdede577d5515913d2 | |
parent | aed15e6291dace6c6d6cac0b8686e807a9dd5036 (diff) | |
download | aur-182152b8bed8dabef90e7117ec642478676bcba0.tar.gz |
go building package specific
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 10 insertions, 17 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Thu May 19 16:09:36 UTC 2016 +# Wed May 25 22:30:51 UTC 2016 pkgbase = gocryptfs pkgdesc = Encrypted overlay filesystem written in Go. pkgver = 0.10_rc3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/rfjakob/gocryptfs arch = i686 arch = x86_64 @@ -2,7 +2,7 @@ pkgname=gocryptfs pkgver=0.10_rc3 _tag=v0.10-rc3 -pkgrel=1 +pkgrel=2 pkgdesc="Encrypted overlay filesystem written in Go." arch=('i686' 'x86_64') url="https://github.com/rfjakob/gocryptfs" @@ -13,24 +13,17 @@ source=("git+https://github.com/rfjakob/gocryptfs.git#tag=$_tag") md5sums=('SKIP') prepare() { - cd gocryptfs - - mkdir -p .gopath/src/github.com/rfjakob - ln -sf "$PWD" .gopath/src/github.com/rfjakob/gocryptfs - export GOPATH="$PWD/.gopath" - - go get github.com/rfjakob/gocryptfs + export GOPATH="$PWD/GO" + mkdir -p $GOPATH/src/github.com/rfjakob + ln -sf $PWD/gocryptfs $GOPATH/src/github.com/rfjakob/ + go get -d github.com/rfjakob/gocryptfs } build() { - cd gocryptfs - export GOPATH="$PWD/.gopath" - - #go build -gccgoflags -gcflags "$CFLAGS" -ldflags "$LDFLAGS" - go build + export GOPATH="$PWD/GO" + $GOPATH/src/github.com/rfjakob/gocryptfs/build.bash } package() { - cd gocryptfs - install -Dm755 gocryptfs "$pkgdir/usr/bin/gocryptfs" + install -Dm755 "$PWD/GO/bin/gocryptfs" "$pkgdir/usr/bin/gocryptfs" } |