diff options
author | XZS | 2017-05-13 00:10:25 +0200 |
---|---|---|
committer | XZS | 2017-05-13 00:10:25 +0200 |
commit | a62784fddf6ed1c83849c407901fcdd1dc999849 (patch) | |
tree | f0ed39ac5b0d516eadae9132b9308b8e1901baad | |
parent | 25c277ba3fe0c7e0b311a124515f7819306d2e5f (diff) | |
download | aur-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-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -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 @@ -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)" } |