wok view nss/receipt @ rev 14653

Normalize LICENSE according to wok/licenses package (gpl part)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 04 21:49:39 2013 +0200 (2013-06-04)
parents 901a72723571
children 23c3aed67cd9
line source
1 # SliTaz package receipt.
3 PACKAGE="nss"
4 VERSION="3.14.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Mozilla Network Security Services (NSS)."
7 MAINTAINER="rocky@slitaz.org"
8 DEPENDS="nspr sqlite zlib"
9 BUILD_DEPENDS="nspr-dev sqlite-dev zlib-dev perl pkg-config"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.mozilla.org/projects/security/pki/nss/"
12 WGET_URL="ftp://ftp.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/${TARBALL}"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -Np1 -i $stuff/nss-3.14.1-standalone-1.patch &&
19 cd mozilla/security/nss &&
20 make -j1 nss_build_all BUILD_OPT=1 \
21 NSPR_INCLUDE_DIR=/usr/include/nspr \
22 USE_SYSTEM_ZLIB=1 \
23 ZLIB_LIBS=-lz \
24 $([ $(uname -m) = x86_64 ] && echo USE_64=1) \
25 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) &&
26 mkdir -p $install/usr/lib $install/usr/include/nss &&
27 mkdir -p $install/usr/bin $install/usr/lib/pkgconfig &&
28 cd ../../dist &&
29 install -v -m755 Linux*/lib/*.so $install/usr/lib &&
30 install -v -m644 Linux*/lib/*.chk $install/usr/lib &&
31 install -v -m644 Linux*/lib/libcrmf.a $install/usr/lib &&
32 install -v -m755 -d $install/usr/include/nss &&
33 cp -v -RL public/nss/* $install/usr/include/nss &&
34 cp -v -RL private/nss/* $install/usr/include/nss &&
35 chmod 644 $install/usr/include/nss/* &&
36 install -v -m755 Linux*/bin/certutil $install/usr/bin &&
37 install -v -m755 Linux*/bin/nss-config $install/usr/bin &&
38 install -v -m755 Linux*/bin/pk12util $install/usr/bin &&
39 install -v -m644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 rm $fs/usr/bin/nss-config
49 }