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