summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStanislav Seletskiy2016-03-24 13:18:42 +0600
committerStanislav Seletskiy2016-03-24 13:18:42 +0600
commit5d2d4e55b60caf4b811dc0a790591c742bf058b8 (patch)
tree1d8058b20d96203837e9b5ccb52c4adc443c8a12 /PKGBUILD
parent11983edb2d101e84b97850ed5608f9363794ba7d (diff)
downloadaur-mcabber-module-autojoin.tar.gz
fix makepkg fail to invalid cd
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0b78697fc7dc..10f0ae3f590d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,8 @@ source=(git+https://github.com/seletskiy/mcabber-autojoin)
md5sums=(SKIP)
pkgver() {
- cd "${pkgname}"
+ cd "$srcdir/mcabber-autojoin"
+
echo $(git rev-list --count master).$(git rev-parse --short master)
}