summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2013-04-10 09:27:26 +0200
committerThibaut Horel <thibaut.horel@gmail.com>2013-04-10 09:27:26 +0200
commit1e574417c560599333fbace9465bf57cd345f55d (patch)
treee299983c66ee75a48bff7075c4403ddf94ebf6d5
parent79faea2d3b0f470d5b9a108f0ec336b3bc8e6f2e (diff)
downloadarchlinux-1e574417c560599333fbace9465bf57cd345f55d.tar.gz
[znc-push] Add git at the end of the package name, fix version number
-rw-r--r--znc-push-git/PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/znc-push-git/PKGBUILD b/znc-push-git/PKGBUILD
index 5402587..fa97803 100644
--- a/znc-push-git/PKGBUILD
+++ b/znc-push-git/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Thibaut Horel <thibaut dot horel at gmail dot com>
_gitname=znc-push
-pkgname=$_gitname
+pkgname=$_gitname-git
pkgrel=1
-pkgver=20130301
+pkgver=121.e7fd722
pkgdesc='A module to send push notifications on various events to push services like Boxcar, NMA, Notifo, Pushover, Prowl, and Supertoasty.'
arch=(i686 x86_64)
url=http://noswap.com/projects/znc-push
@@ -12,10 +12,10 @@ makedepends=(znc)
source=('git+https://github.com/jreese/znc-push.git')
md5sums=('SKIP')
-pkgver() {
- cd "$srcdir/$_gitname"
- git log -1 --format="%cd" --date=short | tr -d '-'
-}
+pkgver(){
+ cd $srcdir/$_gitname
+ echo $(git rev-list --count master).$(git rev-parse --short master)
+ }
build() {
cd "$srcdir/$_gitname"