Skip to content

Commit

Permalink
nss: update to 3.55.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgn committed Jul 28, 2020
1 parent b28f887 commit 920fd0b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 91 deletions.
80 changes: 0 additions & 80 deletions srcpkgs/nss/patches/0001-enable-AVX2-if-applicable-on-x86_64.patch

This file was deleted.

27 changes: 16 additions & 11 deletions srcpkgs/nss/template
@@ -1,9 +1,9 @@
# Template file for 'nss'

_nsprver=4.26
_nsprver=4.27

pkgname=nss
version=3.54
version=3.55
revision=1
hostmakedepends="perl"
makedepends="nspr-devel sqlite-devel zlib-devel"
Expand All @@ -13,7 +13,7 @@ maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MPL-2.0"
homepage="https://www.mozilla.org/projects/security/pki/nss"
distfiles="${MOZILLA_SITE}/security/nss/releases/NSS_${version//\./_}_RTM/src/nss-${version}.tar.gz"
checksum=dab18bbfcf5e347934cda664df75ce9fd912a5772686c40d3c805e53c08d6e43
checksum=fc692e3db45a082ee6328cd989e795c171a00df9c518df090937f7604f850004

do_build() {
local _native_use64 _target_use64
Expand Down Expand Up @@ -50,17 +50,10 @@ do_build() {

if [ "$CROSS_BUILD" ]; then
case "$XBPS_TARGET_MACHINE" in
aarch64*|ppc64*)
aarch64*|ppc64*|x86_64*)
_ARCH="${XBPS_TARGET_MACHINE%-*}"
CFLAGS+=" -DNS_PTR_GT_32"
;;
armv7*)
_ARCH="arm"
# gcm-arm32-neon.c use mfpu=neon,
# force mfpu=neon for everything else.
CFLAGS+=" -mfpu=neon"
CXXFLAGS+=" -mfpu=neon"
;;
arm*) _ARCH="arm";;
mips*) _ARCH="mips";;
ppc*) _ARCH="ppc";;
Expand Down Expand Up @@ -155,6 +148,18 @@ do_install() {
done

install -m644 dist/public/nss/*.h ${DESTDIR}/usr/include/nss

sed -ne '/Copyright/,/SUCH DAMAGE/p' nss/lib/dbm/src/db.c >dbm.LICENSE
vlicense dbm.LICENSE
sed -ne '/The MIT License/,\!// SOFTWARE[.]$!p' \
nss/lib/freebl/ecl/curve25519_32.c >fiat.LICENSE
vlicense fiat.LICENSE
sed -ne '/The MIT License/,/ [*] SOFTWARE[.]$/p' \
nss/lib/freebl/ecl/ecp_secp384r1.c >ecckiila.LICENSE
vlicense ecckiila.LICENSE
sed -ne '/The MIT License/,/ [*] SOFTWARE[.]$/p' \
nss/lib/freebl/verified/Hacl_Chacha20.c >hacl.LICENSE
vlicense hacl.LICENSE
}

nss-devel_package() {
Expand Down

0 comments on commit 920fd0b

Please sign in to comment.