# Maintainer: Bruce Liu pkgname=nspr pkgver=4.10.5 pkgrel=1 pkgdesc="Netscape Portable Runtime" arch=('x86_64') url="http://www.mozilla.org/projects/nspr/" license=('MPL' 'GPL') depends=('glibc') makedepends=('zip') options=('!emptydirs') source=("ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz") md5sums=('c903557c620b4b84457f57ddc80934c4') build() { cd "${srcdir}/${pkgname}-${pkgver}" confflags="--enable-64bit" ./nspr/configure \ --prefix=/usr \ --libdir=/usr/lib \ --includedir=/usr/include/nspr \ --enable-optimize \ --disable-debug ${confflags} make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="$pkgdir" install chmod 644 "$pkgdir"/usr/lib/*.a # 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" }