summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDamien Flament2017-12-08 21:48:57 +0100
committerDamien Flament2017-12-08 21:48:57 +0100
commit9b46a8fea54810b2b068c25db1d86224f930b68a (patch)
treee8724bb3f33e44e4345b87f921f7d79f84b9876e /PKGBUILD
parent1f4cfd4f5dd732284f2f6fe93e7541aff2a0fea5 (diff)
downloadaur-9b46a8fea54810b2b068c25db1d86224f930b68a.tar.gz
Made the version number generated from the last abbreviated commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 917eb65e674..af88c59c8dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=haskell-ide-engine
pkgname=${_pkgname}-git
-pkgver=0.1.0.0
+pkgver=7017233
pkgrel=1
pkgdesc="The engine for haskell ide-integration. Not an IDE."
arch=('i686' 'x86_64')
@@ -22,6 +22,12 @@ noextract=()
md5sums=('SKIP')
validpgpkeys=()
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+
+ git describe --always
+}
+
build() {
cd "${srcdir}/${_pkgname}"