diff options
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/nspr/PKGBUILD | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/abs/extra/nspr/PKGBUILD b/abs/extra/nspr/PKGBUILD index e60f6ab..a6a91c8 100644 --- a/abs/extra/nspr/PKGBUILD +++ b/abs/extra/nspr/PKGBUILD @@ -3,42 +3,38 @@ # Contributor: Alexander Baldeck <alexander@archlinux.org> pkgname=nspr -pkgver=4.10.9 +pkgver=4.17 pkgrel=1 pkgdesc="Netscape Portable Runtime" +url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR" arch=(i686 x86_64) -url="http://www.mozilla.org/projects/nspr/" -license=('MPL' 'GPL') -depends=('glibc') -makedepends=('zip') -options=('!emptydirs') -source=(http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz) -sha1sums=('405e5ad45111ddf95a5d39d647d41d27456c9443') -sha256sums=('4112ff6ad91d32696ca0c6c3d4abef6367b5dc0127fa172fcb3c3ab81bb2d881') +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=('5262abb243191d5fa3dcd72857d7d7f8ec47ad01') +sha256sums=('590a0aea29412ae22d7728038c21ef2ab42646e48172a47d2e4bb782846d1095') -build() { - cd $pkgname-$pkgver - - if [ "$CARCH" = "x86_64" ]; then - _confflags="--enable-64bit" - else - _confflags="" - fi +prepare() { + cd nspr-$pkgver/nspr +} - ./nspr/configure \ +build() { + cd nspr-$pkgver/nspr + ./configure \ --prefix=/usr \ --libdir=/usr/lib \ --includedir=/usr/include/nspr \ --enable-optimize \ - --disable-debug ${_confflags} + --disable-debug \ + $([[ $CARCH == x86_64 ]] && echo --enable-64bit) make } package() { - cd $pkgname-$pkgver + 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" + "$pkgdir"/usr/include/nspr/md } |