core/nss to 3.73-1

This commit is contained in:
Kevin Mihelich 2021-12-02 15:57:54 +00:00
parent b57b013ba4
commit 5cf1bd7d5b

View file

@ -8,30 +8,35 @@
pkgbase=nss
pkgname=(nss ca-certificates-mozilla)
pkgver=3.72
pkgrel=2
pkgver=3.73
pkgrel=1
pkgdesc="Network Security Services"
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
arch=(x86_64)
license=(MPL GPL)
depends=(nspr sqlite zlib sh 'p11-kit>=0.23.19')
makedepends=(perl python gyp)
source=("https://ftp.mozilla.org/pub/security/nss/releases/NSS_${pkgver//./_}_RTM/src/nss-${pkgver}.tar.gz"
makedepends=(perl python gyp mercurial)
_revision=a2050bd67f05e8af5984baca03078d69b3874b85
source=("hg+https://hg.mozilla.org/projects/nss#revision=$_revision"
certdata2pem.py bundle.sh
0001-Don-t-USE_ARM_GCM.patch
0002-fix-armv8_c_lib-dependency.patch)
sha256sums=('6ea60a9ff113e493ea2ab25f41ea75a9fbd10af7903f26f703dac8680732d02e'
sha256sums=('SKIP'
'd2a1579dae05fd16175fac27ef08b54731ecefdf414085c610179afcf62b096c'
'3bfadf722da6773bdabdd25bdf78158648043d1b7e57615574f189a88ca865dd'
'4587713da0a82ac2a994f71c08f6b73a8fbba95e4373f39402f22f813fc4259e'
'1799db595ce8d8f7672731b4ccad2bf5e10d014e9b0032432e9cf0483c252c0a')
pkgver() {
cd nss
hg id -t | sed 's/^NSS_//;s/_RTM$//;s/_/./g'
}
prepare() {
cd nss-$pkgver/nss
mkdir "$srcdir/certs"
ln -srt "$srcdir/certs" lib/ckfw/builtins/{certdata.txt,nssckbi.h}
mkdir -p certs
ln -srft certs nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h}
cd nss
patch -p1 -i "${srcdir}"/0001-Don-t-USE_ARM_GCM.patch
patch -p1 -i "${srcdir}"/0002-fix-armv8_c_lib-dependency.patch
}
@ -45,7 +50,7 @@ build() {
cd ..
./bundle.sh
cd nss-$pkgver/nss
cd nss
./build.sh \
--opt \
--system-sqlite \
@ -59,9 +64,9 @@ build() {
}
package_nss() {
cd nss-$pkgver
local nsprver="$(pkg-config --modversion nspr)"
local libdir=/usr/lib
local libdir=/usr/lib nsprver="$(pkg-config --modversion nspr)"
sed nss/pkg/pkg-config/nss.pc.in \
-e "s,%libdir%,$libdir,g" \
-e "s,%prefix%,/usr,g" \