summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-07-09 16:46:23 +0200
committerDave Reisner <dreisner@archlinux.org>2011-09-30 23:31:39 -0400
commitbeeb92cf3306a84f65ac62a6ca49424c62a6412d (patch)
treef7ee90edf6d74cbecc8a40387d5d5f617a678a64 /PKGBUILD
parent575c9c458264ca4e507a6a08eb104de5d1255556 (diff)
harden version generation
If you run make dist, extract that tarball somewhere else and try to run makepkg it will fail because it can't find the git tree anymore. [Dave: removed --dirty flag, as this breaks makepkg] Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 1 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2cb6a6d..b5a3217 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,5 @@
-IFS='-' read -r major minor _ < <(git describe)
-
pkgname=mkinitcpio-git
-pkgver=$major.$minor
+pkgver=$(make version)
pkgrel=1
pkgdesc="Modular initramfs image creation utility"
arch=(any)