wok-next annotate nss/receipt @ rev 20905
Update packages from ISO and LFS backages (all but toolchain)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 07 00:30:45 2018 +0300 (2018-08-07) |
parents | b19ddba309f9 |
children | d5aab818505e |
rev | line source |
---|---|
al@19835 | 1 # SliTaz package receipt v2. |
rocky@5107 | 2 |
rocky@5107 | 3 PACKAGE="nss" |
al@20905 | 4 VERSION="3.38" |
rocky@5107 | 5 CATEGORY="utilities" |
al@19835 | 6 SHORT_DESC="Mozilla Network Security Services (NSS)" |
rocky@5107 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15601 | 8 LICENSE="MPL" |
al@19835 | 9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS" |
al@20905 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/nss.html" |
al@19835 | 11 |
rocky@5107 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20519 | 13 WGET_URL="https://archive.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/$TARBALL" |
rocky@5107 | 14 |
al@19835 | 15 BUILD_DEPENDS="nspr-dev sqlite3-dev zlib-dev perl" |
al@19835 | 16 SPLIT="nss-dev" |
pascal@15601 | 17 |
al@20513 | 18 compile_rules() { |
al@20513 | 19 case $ARCH in |
al@20513 | 20 x86_64) ARCH_ARGS='USE_64=1';; |
al@20513 | 21 *) ARCH_ARGS='';; |
al@20513 | 22 esac |
al@20513 | 23 |
al@20519 | 24 cd nss |
al@19835 | 25 make \ |
al@19835 | 26 -j1 \ |
al@19835 | 27 BUILD_OPT=1 \ |
domcox@14158 | 28 NSPR_INCLUDE_DIR=/usr/include/nspr \ |
domcox@14158 | 29 USE_SYSTEM_ZLIB=1 \ |
domcox@14158 | 30 ZLIB_LIBS=-lz \ |
al@20519 | 31 NSS_ENABLE_WERROR=0 \ |
al@20513 | 32 $ARCH_ARGS \ |
al@20513 | 33 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) || return 1 |
al@19835 | 34 |
al@19835 | 35 mkdir -p \ |
al@20519 | 36 $install/usr/lib/ \ |
al@20519 | 37 $install/usr/include/nss/ \ |
al@20519 | 38 $install/usr/bin/ \ |
al@20519 | 39 $install/usr/lib/pkgconfig/ \ |
al@20519 | 40 $install/usr/include/nss/ |
al@20513 | 41 cd ../dist |
al@19835 | 42 |
al@20513 | 43 install -vm755 Linux*/lib/*.so $install/usr/lib/ |
al@20513 | 44 install -vm644 Linux*/lib/*.chk $install/usr/lib/ |
al@20513 | 45 install -vm644 Linux*/lib/libcrmf.a $install/usr/lib/ |
al@19835 | 46 |
al@20513 | 47 cp -vRL public/nss/* $install/usr/include/nss/ |
al@20513 | 48 cp -vRL private/nss/* $install/usr/include/nss/ |
al@20513 | 49 chmod -v 644 $install/usr/include/nss/* |
al@19835 | 50 |
al@20513 | 51 install -vm755 Linux*/bin/certutil $install/usr/bin/ |
al@20513 | 52 install -vm755 Linux*/bin/nss-config $install/usr/bin/ |
al@20513 | 53 install -vm755 Linux*/bin/pk12util $install/usr/bin/ |
al@19835 | 54 |
al@20513 | 55 install -vm644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig/ |
rocky@5107 | 56 } |
rocky@5107 | 57 |
al@20513 | 58 genpkg_rules() { |
al@19835 | 59 case $PACKAGE in |
al@19835 | 60 nss) |
al@19835 | 61 copy @std |
al@20905 | 62 DEPENDS="libsqlite3 nspr" # zlib |
al@19835 | 63 ;; |
al@19835 | 64 *-dev) |
al@19835 | 65 copy @dev |
al@19835 | 66 DEPENDS="nss nspr-dev" |
al@19835 | 67 ;; |
al@19835 | 68 esac |
rocky@5107 | 69 } |