summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 84f3a50a153..259593f5e24 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Sep 28 02:27:01 UTC 2016
+# Sun Oct 23 20:24:55 UTC 2016
pkgbase = vk-cli-git
pkgdesc = A console (ncurses) client for vk.com written in D (git upstream)
- pkgver = 0.7.4.r1.b0d4016
+ pkgver = r958.2f6e595
pkgrel = 1
url = https://github.com/HaCk3Dq/vk
arch = x86_64
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