wok annotate nss/receipt @ rev 25353
updated tesseract-ocr-lang packages (3.02 -> 4.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 26 14:33:11 2022 +0100 (2022-07-26) |
parents | 3e9a9990c985 |
children |
rev | line source |
---|---|
rocky@5107 | 1 # SliTaz package receipt. |
rocky@5107 | 2 |
rocky@5107 | 3 PACKAGE="nss" |
devl547@17789 | 4 VERSION="3.17.4" |
rocky@5107 | 5 CATEGORY="utilities" |
rocky@5107 | 6 SHORT_DESC="Mozilla Network Security Services (NSS)." |
rocky@5107 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15601 | 8 LICENSE="MPL" |
rocky@5107 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25094 | 10 WEB_SITE="https://www.mozilla.org/projects/security/pki/nss/" |
pascal@25094 | 11 WGET_URL="https://ftp.mozilla.org/pub/security/nss/releases/NSS_${VERSION//./_}_RTM/src/${TARBALL}" |
rocky@5107 | 12 |
pascal@15601 | 13 DEPENDS="nspr sqlite zlib" |
pascal@15601 | 14 BUILD_DEPENDS="nspr-dev sqlite-dev zlib-dev perl pkg-config" |
pascal@15601 | 15 |
pascal@25094 | 16 # What is the latest version available today? |
pascal@24076 | 17 current_version() |
pascal@24076 | 18 { |
pascal@24076 | 19 wget -O - https://hg.mozilla.org/projects/nss 2>/dev/null | \ |
pascal@24076 | 20 sed '/_BRANCH/!d;s|.*NSS_||;s|_BRANCH.*||;s|_|.|g;q' |
pascal@24076 | 21 } |
pascal@24076 | 22 |
rocky@5107 | 23 # Rules to configure and make the package. |
rocky@5107 | 24 compile_rules() |
rocky@5107 | 25 { |
pascal@20569 | 26 sed -i 's|uname -m|echo i686|' nss/coreconf/arch.mk nss/tests/run_niscc.sh |
devl547@17789 | 27 patch -Np1 -i $stuff/nss-3.17.4-standalone-1.patch && |
devl547@17789 | 28 cd nss && |
domcox@14158 | 29 make -j1 nss_build_all BUILD_OPT=1 \ |
domcox@14158 | 30 NSPR_INCLUDE_DIR=/usr/include/nspr \ |
domcox@14158 | 31 USE_SYSTEM_ZLIB=1 \ |
domcox@14158 | 32 ZLIB_LIBS=-lz \ |
domcox@14158 | 33 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1) && |
domcox@14220 | 34 mkdir -p $install/usr/lib $install/usr/include/nss && |
domcox@14220 | 35 mkdir -p $install/usr/bin $install/usr/lib/pkgconfig && |
devl547@17789 | 36 cd ../dist && |
domcox@14158 | 37 install -v -m755 Linux*/lib/*.so $install/usr/lib && |
domcox@14158 | 38 install -v -m644 Linux*/lib/*.chk $install/usr/lib && |
domcox@14158 | 39 install -v -m644 Linux*/lib/libcrmf.a $install/usr/lib && |
domcox@14158 | 40 install -v -m755 -d $install/usr/include/nss && |
domcox@14158 | 41 cp -v -RL public/nss/* $install/usr/include/nss && |
domcox@14158 | 42 cp -v -RL private/nss/* $install/usr/include/nss && |
domcox@14158 | 43 chmod 644 $install/usr/include/nss/* && |
domcox@14158 | 44 install -v -m755 Linux*/bin/certutil $install/usr/bin && |
domcox@14158 | 45 install -v -m755 Linux*/bin/nss-config $install/usr/bin && |
domcox@14158 | 46 install -v -m755 Linux*/bin/pk12util $install/usr/bin && |
domcox@14158 | 47 install -v -m644 Linux*/lib/pkgconfig/nss.pc $install/usr/lib/pkgconfig |
rocky@5107 | 48 } |
rocky@5107 | 49 |
rocky@5107 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@5107 | 51 genpkg_rules() |
rocky@5107 | 52 { |
slaxemulator@8459 | 53 mkdir -p $fs/usr/lib |
domcox@14158 | 54 cp -a $install/usr/bin $fs/usr |
domcox@14158 | 55 cp -a $install/usr/lib/*.so* $fs/usr/lib |
rocky@5107 | 56 rm $fs/usr/bin/nss-config |
rocky@5107 | 57 } |