wok view nss/receipt @ rev 25249
updated python-websocket-client (0.57.0 -> 0.59.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 07:30:53 2022 +0100 (2022-07-14) |
parents | 3e9a9990c985 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nss"
4 VERSION="3.17.4"
5 CATEGORY="utilities"
6 SHORT_DESC="Mozilla Network Security Services (NSS)."
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="MPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.mozilla.org/projects/security/pki/nss/"
11 WGET_URL="https://ftp.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/${TARBALL}"
13 DEPENDS="nspr sqlite zlib"
14 BUILD_DEPENDS="nspr-dev sqlite-dev zlib-dev perl pkg-config"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://hg.mozilla.org/projects/nss 2>/dev/null | \
20 sed '/_BRANCH/!d;s|.*NSS_||;s|_BRANCH.*||;s|_|.|g;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|uname -m|echo i686|' nss/coreconf/arch.mk nss/tests/run_niscc.sh
27 patch -Np1 -i $stuff/nss-3.17.4-standalone-1.patch &&
28 cd nss &&
29 make -j1 nss_build_all BUILD_OPT=1 \
30 NSPR_INCLUDE_DIR=/usr/include/nspr \
31 USE_SYSTEM_ZLIB=1 \
32 ZLIB_LIBS=-lz \
33 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) &&
34 mkdir -p $install/usr/lib $install/usr/include/nss &&
35 mkdir -p $install/usr/bin $install/usr/lib/pkgconfig &&
36 cd ../dist &&
37 install -v -m755 Linux*/lib/*.so $install/usr/lib &&
38 install -v -m644 Linux*/lib/*.chk $install/usr/lib &&
39 install -v -m644 Linux*/lib/libcrmf.a $install/usr/lib &&
40 install -v -m755 -d $install/usr/include/nss &&
41 cp -v -RL public/nss/* $install/usr/include/nss &&
42 cp -v -RL private/nss/* $install/usr/include/nss &&
43 chmod 644 $install/usr/include/nss/* &&
44 install -v -m755 Linux*/bin/certutil $install/usr/bin &&
45 install -v -m755 Linux*/bin/nss-config $install/usr/bin &&
46 install -v -m755 Linux*/bin/pk12util $install/usr/bin &&
47 install -v -m644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 rm $fs/usr/bin/nss-config
57 }