[arch-commits] Commit in nspr/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 18 14:46:36 UTC 2019
Date: Friday, October 18, 2019 @ 14:46:36
Author: heftig
Revision: 365147
archrelease: copy trunk to testing-x86_64
Added:
nspr/repos/testing-x86_64/
nspr/repos/testing-x86_64/PKGBUILD
(from rev 365146, nspr/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: nspr/repos/testing-x86_64/PKGBUILD (from rev 365146, nspr/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-10-18 14:46:36 UTC (rev 365147)
@@ -0,0 +1,42 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Alexander Baldeck <alexander at archlinux.org>
+
+pkgname=nspr
+pkgver=4.23
+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)
+source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/nspr-${pkgver}.tar.gz)
+sha1sums=('f3fb61231901cdbb9e1b74e3930ff081ed764358')
+sha256sums=('4b9d821037faf5723da901515ed9cac8b23ef1ea3729022259777393453477a4')
+
+prepare() {
+ cd nspr-$pkgver/nspr
+}
+
+build() {
+ cd nspr-$pkgver/nspr
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --includedir=/usr/include/nspr \
+ --enable-optimize \
+ --disable-debug \
+ $([[ $CARCH == x86_64 ]] && echo --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-$pkgver/nspr
+ make DESTDIR="$pkgdir" install
+ ln -s nspr.pc "$pkgdir/usr/lib/pkgconfig/mozilla-nspr.pc"
+ rm -r "$pkgdir"/usr/bin/{compile-et.pl,prerr.properties} \
+ "$pkgdir"/usr/include/nspr/md
+}
More information about the arch-commits
mailing list