2015-07-05 22:51:50 +00:00
|
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Alexander Baldeck <alexander@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - --enable-64bit for AArch64
|
|
|
|
|
|
|
|
pkgname=nspr
|
2020-02-06 13:10:52 +00:00
|
|
|
pkgver=4.25
|
2019-12-07 00:22:46 +00:00
|
|
|
pkgrel=1
|
2015-07-05 22:51:50 +00:00
|
|
|
pkgdesc="Netscape Portable Runtime"
|
2017-04-24 19:13:30 +00:00
|
|
|
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
|
2018-01-22 01:32:43 +00:00
|
|
|
arch=(x86_64)
|
2017-04-24 19:13:30 +00:00
|
|
|
license=(MPL GPL)
|
|
|
|
depends=(glibc sh)
|
|
|
|
makedepends=(zip)
|
2017-08-09 19:41:27 +00:00
|
|
|
source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/nspr-${pkgver}.tar.gz)
|
2020-02-06 13:10:52 +00:00
|
|
|
sha1sums=('fe02a9056ce867677401b3d6372cdb62f7c7aad4')
|
|
|
|
sha256sums=('0bc309be21f91da4474c56df90415101c7f0c7c7cab2943cd943cd7896985256')
|
2017-08-09 19:41:27 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd nspr-$pkgver/nspr
|
|
|
|
}
|
2015-07-05 22:51:50 +00:00
|
|
|
|
|
|
|
build() {
|
2017-08-09 19:41:27 +00:00
|
|
|
cd nspr-$pkgver/nspr
|
|
|
|
./configure \
|
2015-07-05 22:51:50 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--includedir=/usr/include/nspr \
|
|
|
|
--enable-optimize \
|
2017-04-24 19:13:30 +00:00
|
|
|
--disable-debug \
|
|
|
|
$([[ $CARCH == x86_64 || $CARCH == aarch64 ]] && echo --enable-64bit)
|
2019-08-25 19:20:24 +00:00
|
|
|
make ${SOURCE_DATE_EPOCH:+
|
|
|
|
SH_NOW="${SOURCE_DATE_EPOCH}000000"
|
|
|
|
SH_DATE="$(date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d %T')"
|
2019-10-21 12:29:22 +00:00
|
|
|
}
|
2015-07-05 22:51:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-08-09 19:41:27 +00:00
|
|
|
cd nspr-$pkgver/nspr
|
2015-07-05 22:51:50 +00:00
|
|
|
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} \
|
2017-04-24 19:13:30 +00:00
|
|
|
"$pkgdir"/usr/include/nspr/md
|
2015-07-05 22:51:50 +00:00
|
|
|
}
|