core/nss to 3.46.1-1

This commit is contained in:
Kevin Mihelich 2019-10-03 23:12:29 +00:00
parent 9f6097d8da
commit 326b7fbeb3
3 changed files with 10 additions and 9 deletions

View file

@ -6,7 +6,7 @@
pkgbase=nss
pkgname=(nss ca-certificates-mozilla)
pkgver=3.46
pkgver=3.46.1
pkgrel=1
pkgdesc="Network Security Services"
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
@ -14,16 +14,15 @@ arch=(x86_64)
license=(MPL GPL)
_nsprver=4.20
depends=("nspr>=${_nsprver}" sqlite zlib sh p11-kit)
makedepends=(perl python python2 gyp)
makedepends=(perl python gyp)
source=("https://ftp.mozilla.org/pub/security/nss/releases/NSS_${pkgver//./_}_RTM/src/nss-${pkgver}.tar.gz"
certdata2pem.py bundle.sh)
sha256sums=('6b699649d285602ba258a4b0957cb841eafc94eff5735a9da8da0adbb9a10cef'
sha256sums=('3bf7e0ed7db98803f134c527c436cc68415ff17257d34bd75de14e9a09d13651'
'0be02cecc27a6e55e1cad1783033b147f502b26f9fb1bb5a53e7a43bbcb68fa0'
'3bfadf722da6773bdabdd25bdf78158648043d1b7e57615574f189a88ca865dd')
prepare() {
mkdir certs path
ln -s /usr/bin/python2 path/python
mkdir certs
cd nss-$pkgver
ln -sr nss/lib/ckfw/builtins/certdata.txt ../certs/
@ -33,12 +32,14 @@ prepare() {
build() {
[[ $CARCH == "aarch64" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/-march=armv8-a//'` && CXXFLAGS="$CFLAGS"
( cd certs; python ../certdata2pem.py; )
sh bundle.sh
cd certs
../certdata2pem.py
cd ..
./bundle.sh
cd nss-$pkgver/nss
PATH="$srcdir/path:$PATH" bash -x ./build.sh -v \
--opt --system-sqlite --system-nspr --enable-libpkix --disable-tests
./build.sh -v --opt --system-sqlite --system-nspr --enable-libpkix --disable-tests
}
package_nss() {

0
core/nss/bundle.sh Normal file → Executable file
View file

0
core/nss/certdata2pem.py Normal file → Executable file
View file