mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +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.12
|
|
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=('14fb67a0e686a5c662f92e7f59dfd10053f327dd')
|
|
sha256sums=('e0b10a1e569153668ff8bdea6c7e491b389fab69c2f18285a1ebf7c2ea4269de')
|
|
|
|
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"
|
|
}
|