PKGBUILDs/core/nspr/PKGBUILD

40 lines
1.1 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
2017-06-11 00:38:28 +00:00
pkgver=4.15
2015-07-05 22:51:50 +00:00
pkgrel=1
pkgdesc="Netscape Portable Runtime"
2017-04-24 19:13:30 +00:00
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR"
2015-07-05 22:51:50 +00:00
arch=(i686 x86_64)
2017-04-24 19:13:30 +00:00
license=(MPL GPL)
depends=(glibc sh)
makedepends=(zip)
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)
2017-06-11 00:38:28 +00:00
sha1sums=('56030e0177849034ba3027a23ae2a7f8ed41f379')
sha256sums=('27dde06bc3d0c88903a20d6ad807361a912cfb624ca0ab4efb10fc50b19e2d80')
2015-07-05 22:51:50 +00:00
build() {
cd $pkgname-$pkgver
./nspr/configure \
--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)
2015-07-05 22:51:50 +00:00
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} \
2017-04-24 19:13:30 +00:00
"$pkgdir"/usr/include/nspr/md
2015-07-05 22:51:50 +00:00
}