core/nspr to 4.14-1

This commit is contained in:
Kevin Mihelich 2017-04-24 19:13:30 +00:00
parent e46d7a1f79
commit 413b7995e7

View file

@ -6,42 +6,34 @@
# - --enable-64bit for AArch64
pkgname=nspr
pkgver=4.13.1
pkgver=4.14
pkgrel=1
pkgdesc="Netscape Portable Runtime"
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
arch=(i686 x86_64)
url="http://www.mozilla.org/projects/nspr/"
license=('MPL' 'GPL')
depends=('glibc')
makedepends=('zip')
options=('!emptydirs')
license=(MPL GPL)
depends=(glibc sh)
makedepends=(zip)
source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz)
sha1sums=('ec6660257d41267a0e6ee25812e9012cb9ddd274')
sha256sums=('5e4c1751339a76e7c772c0c04747488d7f8c98980b434dc846977e43117833ab')
sha1sums=('4c9ffda940882229104090f8fc8539f6412e1ff7')
sha256sums=('64fc18826257403a9132240aa3c45193d577a84b08e96f7e7770a97c074d17d5')
build() {
cd $pkgname-$pkgver
if [ "$CARCH" = "x86_64" -o "$CARCH" = "aarch64" ]; then
_confflags="--enable-64bit"
else
_confflags=""
fi
./nspr/configure \
--prefix=/usr \
--libdir=/usr/lib \
--includedir=/usr/include/nspr \
--enable-optimize \
--disable-debug ${_confflags}
--disable-debug \
$([[ $CARCH == x86_64 || $CARCH == aarch64 ]] && echo --enable-64bit)
make
}
package() {
cd $pkgname-$pkgver
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"
"$pkgdir"/usr/include/nspr/md
}