summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Hague2017-11-01 18:01:12 +0000
committerMatthew Hague2017-11-01 18:01:12 +0000
commit19b35ddb1cc836dfda83eef32eeb784129bc73e0 (patch)
tree7710f6bf34249821d54d8461daf22ba426364517
parent9cd97e751063794ab1e9486e5a6229d8d461aba7 (diff)
downloadaur-19b35ddb1cc836dfda83eef32eeb784129bc73e0.tar.gz
Use git version with tag
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5716ab4adbd..17567a8273f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Thu Sep 15 01:52:45 UTC 2016
+# Wed Nov 1 18:01:04 UTC 2017
pkgbase = nodejs-imapnotify-git
pkgdesc = Execute scripts on new messages using IDLE imap command
- pkgver = 0.2.0
- pkgrel = 4
+ pkgver = 0.2.0.r6.ga37456c
+ pkgrel = 1
url = http://github.com/a-sk/node-imapnotify
install = nodejs-imapnotify-git.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 22fb5f29293..48b73d3c5bd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_npmname=imapnotify
pkgname=nodejs-imapnotify-git
-pkgver=r30.a37456c
+pkgver=0.2.0.r6.ga37456c
pkgrel=1
pkgdesc='Execute scripts on new messages using IDLE imap command'
arch=(any)
@@ -20,7 +20,7 @@ sha256sums=('SKIP'
pkgver() {
cd "$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {