summaryrefslogtreecommitdiffstats
path: root/abs/extra/nspr/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-08-26 19:07:33 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-08-26 19:07:33 (GMT)
commitb20a30f37948d1e1d5d9cd24946e5d9c820b7ce1 (patch)
treefdd998515930cbb1992c3bb6b6e5d401f27b136c /abs/extra/nspr/PKGBUILD
parent8d0fbda7bb1967b70924a30fce8bdc724638cb88 (diff)
downloadlinhes_pkgbuild-b20a30f37948d1e1d5d9cd24946e5d9c820b7ce1.zip
linhes_pkgbuild-b20a30f37948d1e1d5d9cd24946e5d9c820b7ce1.tar.gz
linhes_pkgbuild-b20a30f37948d1e1d5d9cd24946e5d9c820b7ce1.tar.bz2
nspr: update to 4.10. refs #923
Diffstat (limited to 'abs/extra/nspr/PKGBUILD')
-rw-r--r--abs/extra/nspr/PKGBUILD59
1 files changed, 20 insertions, 39 deletions
diff --git a/abs/extra/nspr/PKGBUILD b/abs/extra/nspr/PKGBUILD
index 3b1ad58..3dd4de0 100644
--- a/abs/extra/nspr/PKGBUILD
+++ b/abs/extra/nspr/PKGBUILD
@@ -1,63 +1,44 @@
-# $Id: PKGBUILD 162022 2012-06-18 22:10:00Z ibiru $
+# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
+
pkgname=nspr
-pkgver=4.9.1
-pkgrel=1
+pkgver=4.10
+pkgrel=2
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=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz
- nspr.pc.in)
-md5sums=('d36d7b65a38f5b43ebd50ad3ad227120'
- 'bce1611f3117b53fc904cab549c09967')
+options=('!emptydirs')
+source=(ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${pkgver}/src/${pkgname}-${pkgver}.tar.gz)
+md5sums=('f5466def95726b3c900d8a0227bdd034')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- if [ "$CARCH" = "x86_64" ]; then
- confflags="--enable-64bit"
+ cd $pkgname-$pkgver
+
+ if [[ $CARCH = x86_64 ]]; then
+ _confflags="--enable-64bit"
else
- confflags=""
+ _confflags=""
fi
- sed -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
- -i mozilla/nsprpub/config/rules.mk
-
- ./mozilla/nsprpub/configure \
+ ./nspr/configure \
--prefix=/usr \
--libdir=/usr/lib \
--includedir=/usr/include/nspr \
--enable-optimize \
- --disable-debug ${confflags}
+ --disable-debug ${_confflags}
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
-
- NSPR_LIBS=`./config/nspr-config --libs`
- NSPR_CFLAGS=`./config/nspr-config --cflags`
- NSPR_VERSION=`./config/nspr-config --version`
- install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
- sed "${srcdir}/nspr.pc.in" -e "s,%libdir%,/usr/lib," \
- -e "s,%prefix%,/usr," \
- -e "s,%exec_prefix%,/usr/bin," \
- -e "s,%includedir%,/usr/include/nspr," \
- -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
- -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
- -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > "${pkgdir}/usr/lib/pkgconfig/nspr.pc"
- chmod 644 "${pkgdir}/usr/lib/pkgconfig/nspr.pc"
- ln -sf nspr.pc "${pkgdir}/usr/lib/pkgconfig/mozilla-nspr.pc"
-
- chmod 644 ${pkgdir}/usr/lib/*.a
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
- rm -rf "${pkgdir}/usr/bin/compile-et.pl" \
- "${pkgdir}/usr/bin/prerr.properties" \
- "${pkgdir}/usr/share/aclocal/nspr.m4" \
- "${pkgdir}/usr/include/nspr/md"
+ chmod 644 "$pkgdir"/usr/lib/*.a
+ 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"
}