summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmorgans2017-08-15 11:33:50 +0930
committerGitHub2017-08-15 11:33:50 +0930
commit1d75522ffbf7ab35bd4c713ed99e3407a3a224e3 (patch)
tree2faa47fe53c2bf707967428b1c05dec11323462f
parentaa041a1687a8238f0526a55c8cc13c9dd25c6733 (diff)
parent9be25c0000377ddcc13f9ac7e8c0986dfc2c91a2 (diff)
downloadaur-1d75522ffbf7ab35bd4c713ed99e3407a3a224e3.tar.gz
Merge pull request #6 from casualjim/patch-1
Fix PKGBUILD to find deps in gopath
-rw-r--r--PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4f18cbae9f3..91f8e5ee77b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,17 +15,17 @@ prepare() {
[[ -f /etc/profile.d/go.sh ]] && source /etc/profile.d/go.sh
export GOPATH=$srcdir/go
- mkdir -p "$GOPATH/$(dirname "$gopackagepath")"
- mv "$srcdir/$pkgname-$pkgver" "$GOPATH/$gopackagepath"
+ mkdir -p "$GOPATH/src/$(dirname "$gopackagepath")"
+ mv "$srcdir/$pkgname-$pkgver" "$GOPATH/src/$gopackagepath"
}
build() {
- cd "$GOPATH/$gopackagepath"
+ cd "$GOPATH/src/$gopackagepath"
make
}
package() {
- cd "$GOPATH/$gopackagepath"
+ cd "$GOPATH/src/$gopackagepath"
make install DESTDIR=$pkgdir/usr
}