summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Flament2017-12-08 21:48:57 +0100
committerDamien Flament2017-12-08 21:48:57 +0100
commit9b46a8fea54810b2b068c25db1d86224f930b68a (patch)
treee8724bb3f33e44e4345b87f921f7d79f84b9876e
parent1f4cfd4f5dd732284f2f6fe93e7541aff2a0fea5 (diff)
downloadaur-9b46a8fea54810b2b068c25db1d86224f930b68a.tar.gz
Made the version number generated from the last abbreviated commit
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eaa8296385c..4dd74eccbe4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = haskell-ide-engine-git
pkgdesc = The engine for haskell ide-integration. Not an IDE.
- pkgver = 0.1.0.0
+ pkgver = 7017233
pkgrel = 1
url = https://github.com/haskell/haskell-ide-engine
arch = i686
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}"