diff options
author | XZS | 2017-04-04 20:56:23 +0200 |
---|---|---|
committer | XZS | 2017-04-04 20:56:23 +0200 |
commit | 2cba92092725962c0a7d5da09df5db2f542437ec (patch) | |
tree | 70d0d03dafef4358fff73f148b8386b4a4f22974 | |
parent | a623be77ec29c5067a3a599d9ab5e490b3230995 (diff) | |
download | aur-2cba92092725962c0a7d5da09df5db2f542437ec.tar.gz |
adhere to greatest pre-release number
The newest version is obviously represented by the greatest number, so
sorting has to be reversed.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 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.9.9pre1 - 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.9.9pre1 -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,7 @@ 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 -n | head -n1 | tr '\n' '.' + s/-final$//;s/-//' | sort -nr | head -n1 | tr '\n' '.' printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } |