PKGBUILDs/core/nspr/PKGBUILD

48 lines
1.2 KiB
Bash
Raw Normal View History

2015-07-05 22:51:50 +00:00
# $Id$
# 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
2016-10-21 12:15:42 +00:00
pkgver=4.13
2015-07-05 22:51:50 +00:00
pkgrel=1
pkgdesc="Netscape Portable Runtime"
arch=(i686 x86_64)
url="http://www.mozilla.org/projects/nspr/"
license=('MPL' 'GPL')
depends=('glibc')
makedepends=('zip')
options=('!emptydirs')
2015-11-04 19:08:29 +00:00
source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz)
2016-10-21 12:15:42 +00:00
sha1sums=('c9274bb5cc33a388a7e8cd9b378873c59190f74b')
sha256sums=('19c33334bb3fa6d24800ffa65d7d806c54ad5f8c3758a5c11352ad43212ab181')
2015-07-05 22:51:50 +00:00
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}
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"
}