[arch-commits] Commit in nspr/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Jan Steffens heftig at gemini.archlinux.org
Thu May 26 10:01:31 UTC 2022


    Date: Thursday, May 26, 2022 @ 10:01:30
  Author: heftig
Revision: 446548

archrelease: copy trunk to testing-x86_64

Added:
  nspr/repos/testing-x86_64/
  nspr/repos/testing-x86_64/PKGBUILD
    (from rev 446547, nspr/trunk/PKGBUILD)

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

Copied: nspr/repos/testing-x86_64/PKGBUILD (from rev 446547, nspr/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-05-26 10:01:30 UTC (rev 446548)
@@ -0,0 +1,52 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+# Contributor: Alexander Baldeck <alexander at archlinux.org>
+
+pkgname=nspr
+pkgver=4.34
+pkgrel=1
+pkgdesc="Netscape Portable Runtime"
+url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
+arch=(x86_64)
+license=(MPL GPL)
+depends=(glibc sh)
+makedepends=(zip mercurial)
+options=(debug)
+_revision=e7a3ef720ee023dce074f57820a627c6c87a7bb5
+source=("hg+https://hg.mozilla.org/projects/nspr#revision=$_revision")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd nspr
+  hg id -t -r. | sed 's/^NSPR_//;s/_RTM$//;s/_/./g'
+}
+
+prepare() {
+  cd nspr
+}
+
+build() {
+  cd nspr
+  ./configure \
+      --prefix=/usr \
+      --libdir=/usr/lib \
+      --includedir=/usr/include/nspr \
+      --enable-optimize \
+      --disable-debug \
+      --enable-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
+  make DESTDIR="$pkgdir" install
+  ln -s nspr.pc "$pkgdir/usr/lib/pkgconfig/mozilla-nspr.pc"
+
+  rm -r "$pkgdir"/usr/include/nspr/md
+  rm "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties}
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list