summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranziskus Kiefer2018-07-17 10:01:07 +0200
committerFranziskus Kiefer2018-07-17 10:01:07 +0200
commit835aafd88b04edb1a3898e5bcb68d410adc30678 (patch)
tree665b0114aaae7fb74047db43179dbcbe5b731ec5
parenta3731d1370ff4f794378c8108c84ed733601b492 (diff)
downloadaur-835aafd88b04edb1a3898e5bcb68d410adc30678.tar.gz
update pkgver, thanks to Depau
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8816c283424..77f6ad47a3b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = nss-hg
pkgdesc = Mozilla Network Security Services
- pkgver = r13546.fff2c933097d
+ pkgver = 3.39.0r14421.1f58a4995451
pkgrel = 1
url = https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index aa612e01410..9e81bbaee0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
_pkgname=nss
pkgname=nss-hg
-pkgver=r13546.fff2c933097d
+pkgver=3.39.0r14421.1f58a4995451
pkgrel=1
pkgdesc="Mozilla Network Security Services"
arch=(i686 x86_64)
@@ -20,8 +20,13 @@ conflicts=('nss')
provides=('nss')
pkgver() {
+ local vmajor vminor vpatch
cd "$_pkgname"
- printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+
+ { read vmajor; read vminor; read vpatch; } \
+ < <(awk '/#define.*NSS_V(MAJOR|MINOR|PATCH)/ {print $3}' lib/nss/nss.h)
+
+ printf "%s.%s.%sr%s.%s" "$vmajor" "$vminor" "$vpatch" "$(hg identify -n)" "$(hg identify -i)"
}
build() {