# Maintainer: Jan Alexander Steffens (heftig) # Contributor: Jan de Groot # Contributor: Alexander Baldeck # ALARM: Kevin Mihelich # - --enable-64bit for AArch64 pkgname=nspr pkgver=4.28 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=('90a355c116cfa3e378126329fc6c06bc02b99102') sha256sums=('63defc8e19a80b6f98fcc7d5a89e84ea703c0b50aa6bc13bf7ad071adf433b56') 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 || $CARCH == aarch64 ]] && 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 }