summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Porto Carrero2017-08-14 08:41:56 -0700
committerGitHub2017-08-14 08:41:56 -0700
commit9be25c0000377ddcc13f9ac7e8c0986dfc2c91a2 (patch)
tree2faa47fe53c2bf707967428b1c05dec11323462f
parentaa041a1687a8238f0526a55c8cc13c9dd25c6733 (diff)
downloadaur-9be25c0000377ddcc13f9ac7e8c0986dfc2c91a2.tar.gz
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
}