summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Tolar2013-06-20 23:48:42 -0500
committerJeffrey Tolar2013-06-20 23:48:42 -0500
commit4b150a72bbe03429aabb04cf34621057511027da (patch)
treeee212523308bf12ec6de86ee0d39ccd77010c720
parentaf75173ed40cd8e26e3bf15eeb3e6d6ab164b967 (diff)
downloadaur-4b150a72bbe03429aabb04cf34621057511027da.tar.gz
Add pkgver() function
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8e9a01c3dcf..56bcb921bc7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cope-git
pkgdesc = A colourful wrapper for terminal programs
- pkgver = 20110901
+ pkgver = 147.64038ce
pkgrel = 1
url = http://stuff.cytzol.org/cope/
install = cope-git.install
diff --git a/PKGBUILD b/PKGBUILD
index d76a3674ac0..740b32de076 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: denton <e9203.00 gmail com>
pkgname=cope-git
_pkgname=cope
-pkgver=20110901
+pkgver=147.64038ce
pkgrel=1
pkgdesc='A colourful wrapper for terminal programs'
url=http://stuff.cytzol.org/cope/
@@ -17,6 +17,12 @@ install=$pkgname.install
source=("$_pkgname::git://github.com/lotrfan/${_pkgname}.git")
md5sums=('SKIP')
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+
build() {
cd "${srcdir}/${_pkgname}"