# Note: depends on nspr # Note: depends on zlib # Note: depends on perl wget -c https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_38_RTM/src/nss-3.38.tar.gz tar -xzf nss-3.38.tar.gz cd nss-3.38/nss export USE_64="`uname -m | sed -n -e 's/x86_64/1/p'`" make NSPR_INCLUDE_DIR="/usr/include/nspr" make install cp -rL ../dist/Linux*/* /usr cp -rL ../dist/public/* /usr/include sed -e 's|%prefix%|/usr|g; s|%exec_prefix%|/usr|g; s|%libdir%|/usr/lib|g; s|%includedir%|/usr/include/nss|g; s|%NSS_VERSION%|3.38|g; s|%NSPR_VERSION%|0|g' pkg/pkg-config/nss.pc.in > nss.pc cp nss.pc /usr/lib/pkgconfig echo '#!/bin/sh' > nss-config echo 'pkg-config nss `echo "$@" | sed -e "s/--prefix=[^ ]*//;s/--version/--modversion/"`' >> nss-config chmod +x nss-config cp nss-config /usr/bin