# Depends on: nspr sqlite3
name=nss
-version=3.43
+version=3.55
release=1
source=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_${version//./_}_RTM/src/$name-$version.tar.gz \
- nss-config.in nss.pc.in)
+ nss-config.in nss.pc.in nss-3.54-standalone-2.patch)
build() {
-cd $name-$version/
- sed -i nss/coreconf/Linux.mk \
- -e 's|^CC.*=.*gcc$|#&|' \
- -e 's|^CCC.*=.*g++$|#&|'
+ cd $name-$version/
+
+ patch -Np1 -i ../nss-3.54-standalone-2.patch
export NSPR_INCLUDE_DIR=/usr/include/nspr
export NSPR_LIB_DIR=/usr/lib
export XCFLAGS="-Wno-error ${CFLAGS}"
export NSS_DISABLE_GTESTS=1
- make -j1 -C nss
+ make -C nss
install -d $PKG/usr/{bin,lib/pkgconfig,include/nss}