[arch-commits] Commit in lib32-nspr/repos (2 files)

Jan Steffens heftig at archlinux.org
Fri Aug 21 17:06:19 UTC 2020


    Date: Friday, August 21, 2020 @ 17:06:19
  Author: heftig
Revision: 686307

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-nspr/repos/multilib-testing-x86_64/
  lib32-nspr/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 686306, lib32-nspr/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: lib32-nspr/repos/multilib-testing-x86_64/PKGBUILD (from rev 686306, lib32-nspr/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-testing-x86_64/PKGBUILD	2020-08-21 17:06:19 UTC (rev 686307)
@@ -0,0 +1,46 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: kfgz <kfgz at interia pl>
+# Contributor: Ionut Biru <ibiru at archlinux dot org>
+
+pkgname=lib32-nspr
+pkgver=4.28
+pkgrel=1
+pkgdesc="Netscape Portable Runtime (32-bit)"
+url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
+arch=(x86_64)
+license=(MPL GPL)
+depends=(lib32-glibc nspr)
+makedepends=(zip)
+source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/nspr-${pkgver}.tar.gz)
+sha1sums=('90a355c116cfa3e378126329fc6c06bc02b99102')
+sha256sums=('63defc8e19a80b6f98fcc7d5a89e84ea703c0b50aa6bc13bf7ad071adf433b56')
+
+prepare() {
+  cd nspr-$pkgver/nspr
+}
+
+build() {
+  cd nspr-$pkgver/nspr
+  ./configure \
+      --prefix=/usr \
+      --libdir=/usr/lib32 \
+      --includedir=/usr/include/nspr \
+      --enable-optimize \
+      --disable-debug \
+      --disable-64bit
+  make ${SOURCE_DATE_EPOCH:+
+    SH_NOW="${SOURCE_DATE_EPOCH}000000"
+    SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
+  }
+}
+
+package() {
+  cd nspr-$pkgver/nspr
+  make DESTDIR="$pkgdir" install
+  ln -s nspr.pc "$pkgdir/usr/lib32/pkgconfig/mozilla-nspr.pc"
+  rm -r "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties} \
+        "$pkgdir"/usr/include/nspr/md
+  rm -r "$pkgdir"/usr/{bin,share,include}
+}



More information about the arch-commits mailing list