summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsubstanceof2016-10-23 23:25:07 +0300
committersubstanceof2016-10-23 23:25:07 +0300
commitaea2c27fe498c975fa9218f5e128bd431a97933c (patch)
tree354028fc7e4b67de6999b97ac41fa36c5f5b2e5c /PKGBUILD
parent2f817b0100b7803c062726f4cb28aac95718d99b (diff)
downloadaur-aea2c27fe498c975fa9218f5e128bd431a97933c.tar.gz
r958
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 69fe3045421..3bc83c19656 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: substanceof <vk-cli.dev[at]ya[dot]ru>
pkgname=vk-cli-git
-pkgver=0.7.4.r1.b0d4016
+pkgver=r958.2f6e595
pkgrel=1
pkgdesc="A console (ncurses) client for vk.com written in D (git upstream)"
arch=('x86_64' 'i686')
@@ -17,6 +17,11 @@ md5sums=('SKIP')
_gitname=vk
+pkgver() {
+ cd "$srcdir/$_gitname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
build() {
cd "$srcdir/$_gitname"
dub build --config=release-shared