summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2017-05-13 00:10:25 +0200
committerXZS2017-05-13 00:10:25 +0200
commita62784fddf6ed1c83849c407901fcdd1dc999849 (patch)
treef0ed39ac5b0d516eadae9132b9308b8e1901baad
parent25c277ba3fe0c7e0b311a124515f7819306d2e5f (diff)
downloadaur-a62784fddf6ed1c83849c407901fcdd1dc999849.tar.gz
convert new development version format
A suffix of "dev" instead of "pre" designate following development versions. As the author seems to change syntax often, it will be converted to the old naming scheme for now to yield a more consistent versioning.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d487d5b40fd2..8f405b4e7ced 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mozilla-extension-gnotifier-git
pkgdesc = Add-on for Firefox and Thunderbird to enable integration with GNOME native notification system.
pkgver = 1.10.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/mkiol/GNotifier
arch = any
license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index 48b952e455c6..9365c0164b69 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=mozilla-extension-gnotifier-git
pkgver=1.10.0
-pkgrel=1
+pkgrel=2
pkgdesc='Add-on for Firefox and Thunderbird to enable integration with GNOME native notification system.'
url='https://github.com/mkiol/GNotifier'
arch=('any')
@@ -47,7 +47,8 @@ pkgver() {
's/.*"version"\s*:\s*"\([[:digit:].]*\)"\s*,.*/\1/p' \
'{}' \; -quit 2>/dev/null
)*" -printf '%f\n' | sed 's/^gnotifier[-_]\(.*\).xpi$/\1/;
- s/-final$//;s/-//' | sort -nr | head -n1 | tr '\n' '.'
+ s/-final$//;s/-dev\([[:digit:]]*\)/pre\1/;s/-//' |
+ sort -nr | head -n1 | tr '\n' '.'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}