summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Perez de Castro2016-04-17 18:26:02 +0300
committerAdrian Perez de Castro2016-04-17 18:26:02 +0300
commit8870b851d01ee7a7497b6a29e9abb0c6c5fcf859 (patch)
tree5899da91743b3bd82d9007031d451db54946dd8d
parent5ea57059d3756e9c022a9e984db1ec8859f1b1ee (diff)
downloadaur-8870b851d01ee7a7497b6a29e9abb0c6c5fcf859.tar.gz
Fix directory change in pkgver()
The prepare() function is run before pkgver(), so the latter has to use the directory to where prepare() has moved the sources to.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ceb24071487..455aac0466e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
-# Generated by makepkg 5.0.0
-# Mon Feb 8 11:34:33 UTC 2016
+# Generated by mksrcinfo v8
+# Sun Apr 17 15:25:57 UTC 2016
pkgbase = cockroachdb-git
pkgdesc = A Scalable, Geo-Replicated, Transactional Datastore
- pkgver = r7357.e617cdb
+ pkgver = r9464.0958303
pkgrel = 1
url = https://github.com/cockroachdb/cockroach
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 59af2f5f624..2c2ddb06622 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname='cockroachdb-git'
pkgdesc='A Scalable, Geo-Replicated, Transactional Datastore'
-pkgver=r7357.e617cdb
+pkgver=r9464.0958303
pkgrel=1
license=('Apache')
url='https://github.com/cockroachdb/cockroach'
@@ -12,7 +12,7 @@ makedepends=('go')
pkgver () {
- cd "${pkgname}"
+ cd "${GOPATH}/src/github.com/cockroachdb/cockroach"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||