wok-next view nss/receipt @ rev 20244
Update bdeps: apache-mod-perl, codeblocks, tacacs+, thunar-archive-plugin, tuxpaint, xpenguins
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 07 10:54:15 2017 +0200 (2017-11-07) |
parents | ebe8e8797193 |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nss"
4 VERSION="3.29"
5 CATEGORY="utilities"
6 SHORT_DESC="Mozilla Network Security Services (NSS)"
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="MPL"
9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/${TARBALL}"
14 BUILD_DEPENDS="nspr-dev sqlite3-dev zlib-dev perl"
15 SPLIT="nss-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/nss.html
21 cd nss &&
22 make \
23 -j1 \
24 BUILD_OPT=1 \
25 NSPR_INCLUDE_DIR=/usr/include/nspr \
26 USE_SYSTEM_ZLIB=1 \
27 ZLIB_LIBS=-lz \
28 $([ $(uname -m) == x86_64 ] && echo USE_64=1) \
29 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) &&
31 mkdir -p \
32 $install/usr/lib \
33 $install/usr/include/nss \
34 $install/usr/bin \
35 $install/usr/lib/pkgconfig \
36 $install/usr/include/nss &&
37 cd ../dist &&
39 install -vm755 Linux*/lib/*.so $install/usr/lib &&
40 install -vm644 Linux*/lib/*.chk $install/usr/lib &&
41 install -vm644 Linux*/lib/libcrmf.a $install/usr/lib &&
43 cp -vRL public/nss/* $install/usr/include/nss &&
44 cp -vRL private/nss/* $install/usr/include/nss &&
45 chmod -v 644 $install/usr/include/nss/* &&
47 install -vm755 Linux*/bin/certutil $install/usr/bin &&
48 install -vm755 Linux*/bin/nss-config $install/usr/bin &&
49 install -vm755 Linux*/bin/pk12util $install/usr/bin &&
51 install -vm644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 case $PACKAGE in
58 nss)
59 copy @std
60 DEPENDS="libsqlite3 nspr zlib"
61 ;;
62 *-dev)
63 copy @dev
64 DEPENDS="nss nspr-dev"
65 ;;
66 esac
67 }