wok-next view nss/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | d43bf7aae921 |
children | e7a485521d6a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nss"
4 VERSION="3.35"
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"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/postlfs/nss.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://archive.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/$TARBALL"
15 BUILD_DEPENDS="nspr-dev sqlite3-dev zlib-dev perl"
16 SPLIT="nss-dev"
18 compile_rules() {
19 case $ARCH in
20 x86_64) ARCH_ARGS='USE_64=1';;
21 *) ARCH_ARGS='';;
22 esac
24 cd nss
25 make \
26 -j1 \
27 BUILD_OPT=1 \
28 NSPR_INCLUDE_DIR=/usr/include/nspr \
29 USE_SYSTEM_ZLIB=1 \
30 ZLIB_LIBS=-lz \
31 NSS_ENABLE_WERROR=0 \
32 $ARCH_ARGS \
33 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) || return 1
35 mkdir -p \
36 $install/usr/lib/ \
37 $install/usr/include/nss/ \
38 $install/usr/bin/ \
39 $install/usr/lib/pkgconfig/ \
40 $install/usr/include/nss/
41 cd ../dist
43 install -vm755 Linux*/lib/*.so $install/usr/lib/
44 install -vm644 Linux*/lib/*.chk $install/usr/lib/
45 install -vm644 Linux*/lib/libcrmf.a $install/usr/lib/
47 cp -vRL public/nss/* $install/usr/include/nss/
48 cp -vRL private/nss/* $install/usr/include/nss/
49 chmod -v 644 $install/usr/include/nss/*
51 install -vm755 Linux*/bin/certutil $install/usr/bin/
52 install -vm755 Linux*/bin/nss-config $install/usr/bin/
53 install -vm755 Linux*/bin/pk12util $install/usr/bin/
55 install -vm644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig/
56 }
58 genpkg_rules() {
59 case $PACKAGE in
60 nss)
61 copy @std
62 DEPENDS="libsqlite3 nspr zlib"
63 ;;
64 *-dev)
65 copy @dev
66 DEPENDS="nss nspr-dev"
67 ;;
68 esac
69 }