summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorObed N Munoz2017-08-25 16:22:58 -0500
committerObed N Munoz2017-08-25 16:22:58 -0500
commitd7c05ad4246843bc5f4c2f78f2fe1fe7ed21d3bd (patch)
tree48981884d7cccb695db089a4c4b4d1df0287108a
parent92035ec7c93cbfb6304d96e6dd1bea0f7b32d9c4 (diff)
downloadaur-d7c05ad4246843bc5f4c2f78f2fe1fe7ed21d3bd.tar.gz
Fix wrong cloned paths
Signed-off-by: Obed N Munoz <obed.n.munoz@gmail.com>
-rw-r--r--PKGBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 48c52771125..64a7c72a44d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,6 +15,7 @@ pkgname=go-git
epoch=2
pkgver=1.9
pkgrel=1
+pkgrepo=go
pkgdesc='Core compiler tools for the Go programming language'
arch=(i686 x86_64)
url='http://golang.org/'
@@ -34,23 +35,23 @@ export GOROOT_FINAL=/usr/lib/go
export GOROOT_BOOTSTRAP=/usr/lib/go
build() {
- export GOROOT="$srcdir/$pkgname"
+ export GOROOT="$srcdir/$pkgrepo"
export GOBIN="$GOROOT/bin"
export GOPATH="$srcdir/"
- cd $pkgname/src
+ cd $pkgrepo/src
./make.bash --no-clean
}
check() {
- export GOROOT="$srcdir/$pkgname"
+ export GOROOT="$srcdir/$pkgrepo"
export GOBIN="$GOROOT/bin"
- export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH"
+ export PATH="$srcdir/$pkgrepo-$pkgver/bin:$PATH"
export GO_TEST_TIMEOUT_SCALE=2
# The cgo_test and race tests fail via run.bash but not if run manually.
# Assume that five "failed" messages are okay and just re-run failed tests.
- cd $pkgname/src
+ cd $pkgrepo/src
./run.bash --no-rebuild -v -v -v -k |& tee run.log
if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then
return 1
@@ -61,7 +62,7 @@ check() {
}
package() {
- cd $pkgbase
+ cd $pkgrepo
install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
cp -a bin pkg src lib misc "$pkgdir/usr/lib/go"