wok-6.x view nss/receipt @ rev 20598
arandr, emacs, gobby: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 16 13:36:41 2018 +0100 (2018-12-16) |
parents | 859df5086c8b |
children | 059ad2802cf3 |
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="http://www.mozilla.org/projects/security/pki/nss/"
11 WGET_URL="http://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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's|uname -m|echo i686|' nss/coreconf/arch.mk nss/tests/run_niscc.sh
20 #sed -i 's|BITS=\$1|BITS=32|' nss/automation/buildbot-slave/build.sh
21 patch -Np1 -i $stuff/nss-3.17.4-standalone-1.patch &&
22 cd nss &&
23 make -j1 nss_build_all BUILD_OPT=1 \
24 NSPR_INCLUDE_DIR=/usr/include/nspr \
25 USE_SYSTEM_ZLIB=1 \
26 ZLIB_LIBS=-lz \
27 USE_64=0 \
28 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) &&
29 mkdir -p $install/usr/lib $install/usr/include/nss &&
30 mkdir -p $install/usr/bin $install/usr/lib/pkgconfig &&
31 cd ../dist &&
32 install -v -m755 Linux*/lib/*.so $install/usr/lib &&
33 install -v -m644 Linux*/lib/*.chk $install/usr/lib &&
34 install -v -m644 Linux*/lib/libcrmf.a $install/usr/lib &&
35 install -v -m755 -d $install/usr/include/nss &&
36 cp -v -RL public/nss/* $install/usr/include/nss &&
37 cp -v -RL private/nss/* $install/usr/include/nss &&
38 chmod 644 $install/usr/include/nss/* &&
39 install -v -m755 Linux*/bin/certutil $install/usr/bin &&
40 install -v -m755 Linux*/bin/nss-config $install/usr/bin &&
41 install -v -m755 Linux*/bin/pk12util $install/usr/bin &&
42 install -v -m644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 rm $fs/usr/bin/nss-config
52 }