summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorssfdust2015-08-12 11:54:16 +0800
committerssfdust2015-08-12 11:54:16 +0800
commitea239d299835fc1682331839be184f90e45447d2 (patch)
tree1c68d620689b70d1bea4cfdd68276c3d5700db76
parent15202d4f18f7f0fa1a34ea87b2a7968dcb00bdb5 (diff)
downloadaur-ea239d299835fc1682331839be184f90e45447d2.tar.gz
solve pkgver error
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3fede72a98b..b35d299473b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,9 +15,14 @@ provides=('ycm-generator-git' 'ycm-generator')
source=("git://github.com/rdnetto/YCM-Generator.git")
md5sums=('SKIP')
-pkgver() {
+prepare()
+{
+ #switch to develop branch for archlinux support
cd $srcdir/YCM-Generator/
git checkout develop
+}
+pkgver() {
+ cd $srcdir/YCM-Generator/
printf "develop%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}