[arch-commits] Commit in lib32-nss/trunk (PKGBUILD)

Jan Steffens heftig at gemini.archlinux.org
Wed Dec 1 17:18:47 UTC 2021


    Date: Wednesday, December 1, 2021 @ 17:18:46
  Author: heftig
Revision: 1060626

3.73-1

Modified:
  lib32-nss/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 16:57:06 UTC (rev 1060625)
+++ PKGBUILD	2021-12-01 17:18:46 UTC (rev 1060626)
@@ -4,28 +4,34 @@
 # Contributor: Ionut Biru <ibiru at archlinux dot org>
 
 pkgname=lib32-nss
-pkgver=3.72
-pkgrel=2
+pkgver=3.73
+pkgrel=1
 pkgdesc="Network Security Services (32-bit)"
 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
 arch=(x86_64)
 license=(MPL GPL)
-depends=(lib32-nspr lib32-sqlite lib32-zlib 'lib32-p11-kit>=0.23.19')
-makedepends=(perl python gyp)
-source=("https://ftp.mozilla.org/pub/security/nss/releases/NSS_${pkgver//./_}_RTM/src/nss-${pkgver}.tar.gz"
+depends=(lib32-nspr lib32-sqlite lib32-zlib 'lib32-p11-kit>=0.23.19' nss)
+makedepends=(perl python gyp mercurial)
+_revision=a2050bd67f05e8af5984baca03078d69b3874b85
+source=("hg+https://hg.mozilla.org/projects/nss#revision=$_revision"
         0001-Hack-mpi_x64.s-to-work-with-fno-plt.patch)
-sha256sums=('6ea60a9ff113e493ea2ab25f41ea75a9fbd10af7903f26f703dac8680732d02e'
+sha256sums=('SKIP'
             'e27a9fc2e7687ab9c1cb430917f13775ab29f9abf4c2032ea262a5a2a8b43ffa')
 
+pkgver() {
+  cd nss
+  hg id -t | sed 's/^NSS_//;s/_RTM$//;s/_/./g'
+}
+
 prepare() {
-  cd nss-$pkgver/nss
+  cd nss
 
   # https://bugzilla.mozilla.org/show_bug.cgi?id=1382942
-  patch -Np1 -i "$srcdir/0001-Hack-mpi_x64.s-to-work-with-fno-plt.patch"
+  patch -Np1 -i ../0001-Hack-mpi_x64.s-to-work-with-fno-plt.patch
 }
 
 build() {
-  cd nss-$pkgver/nss
+  cd nss
   ./build.sh \
     --target ia32 \
     --opt \
@@ -36,11 +42,9 @@
 }
 
 package() {
-  depends+=(nss)
+  local nsprver="$(i686-pc-linux-gnu-pkg-config --modversion nspr)"
+  local libdir=/usr/lib32
 
-  cd nss-$pkgver
-
-  local libdir=/usr/lib32 nsprver="$(i686-pc-linux-gnu-pkg-config --modversion nspr)"
   sed nss/pkg/pkg-config/nss.pc.in \
     -e "s,%libdir%,$libdir,g" \
     -e "s,%prefix%,/usr,g" \



More information about the arch-commits mailing list