mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
# $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
|
|
pkgver=4.11
|
|
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')
|
|
source=(https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz)
|
|
sha1sums=('171ba99640e1c4d8d5b8085f3a09622c05f9b7fc')
|
|
sha256sums=('cb320a9eee7028275ac0fce7adc39dee36f14f02fd8432fce1b7e1aa5e3685c2')
|
|
|
|
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"
|
|
}
|