mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# 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
|
|
pkgver=4.21
|
|
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=('0ae8c710a52775e209b96aa6220362837b79b6c3')
|
|
sha256sums=('15ea32c7b100217b6e3193bc03e77f485d9bf7504051443ba9ce86d1c17c6b5a')
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|