From e87ea98c721ac7e41fc90351f67e0d07f6d44335 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 21 Aug 2012 19:11:56 -0500
Subject: nspr: 4.9.1

---
 abs/extra/nspr/PKGBUILD | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/abs/extra/nspr/PKGBUILD b/abs/extra/nspr/PKGBUILD
index 750f05f..3b1ad58 100644
--- a/abs/extra/nspr/PKGBUILD
+++ b/abs/extra/nspr/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 87667 2010-08-17 14:52:56Z jgc $
+# $Id: PKGBUILD 162022 2012-06-18 22:10:00Z ibiru $
 # Maintainer: Jan de Groot <jgc@archlinux.org>
 # Contributor: Alexander Baldeck <alexander@archlinux.org>
 pkgname=nspr
-pkgver=4.8.6
+pkgver=4.9.1
 pkgrel=1
 pkgdesc="Netscape Portable Runtime"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
 url="http://www.mozilla.org/projects/nspr/"
 license=('MPL' 'GPL')
 depends=('glibc')
@@ -13,7 +13,7 @@ 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=('592c275728c29d193fdba8009165990b'
+md5sums=('d36d7b65a38f5b43ebd50ad3ad227120'
          'bce1611f3117b53fc904cab549c09967')
 
 build() {
@@ -23,8 +23,10 @@ build() {
   else
     confflags=""
   fi
-  unset CFLAGS
-  unset CXXFLAGS
+
+  sed -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
+      -i mozilla/nsprpub/config/rules.mk
+
   ./mozilla/nsprpub/configure \
       --prefix=/usr \
       --libdir=/usr/lib \
@@ -33,6 +35,7 @@ build() {
       --disable-debug ${confflags}
   make
 }
+
 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}" install
-- 
cgit v0.12

