summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c2ff7451d18..8d1d4cf40bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,12 +25,11 @@ md5sums=('SKIP')
validpgpkeys=()
prepare() {
- git clone $source "$pkgname-git"
+ git clone -b "$pkgver" --depth 1 "$source" "$pkgname-git"
}
pkgver() {
- cd "$pkgname-git"
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ echo "$pkgver"
}
build() {