summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1e6045b6edc2..5797905edf47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ provides=('powerline-console-fonts')
conflicts=('powerline-console-fonts')
pkgver() {
- git describe --long --tags | \
+ git -C "${srcdir}/${_reponame}" describe --long --tags | \
sed 's|\([0-9]\+.[0-9]\+.[0-9]\+.\)\([^-]*-g\)|r\2|;s|-|.|g;s|^v||g'
}