wok annotate nspr/receipt @ rev 25003
updated nspr and nspr-dev (4.25 -> 4.33)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:53:05 2022 +0100 (2022-05-16) |
parents | 3e9a9990c985 |
children | 03fa4e9f1f0b |
rev | line source |
---|---|
slaxemulator@6882 | 1 # SliTaz package receipt. |
slaxemulator@6882 | 2 |
slaxemulator@6882 | 3 PACKAGE="nspr" |
Hans-G?nter@25003 | 4 VERSION="4.33" |
slaxemulator@6882 | 5 CATEGORY="utilities" |
Hans-G?nter@21586 | 6 SHORT_DESC="Netscape Portable Runtime." |
slaxemulator@6882 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15584 | 8 LICENSE="MPL2" |
Hans-G?nter@21586 | 9 WEB_SITE="https://developer.mozilla.org/docs/Mozilla/Projects/NSPR" |
Hans-G?nter@21586 | 10 |
slaxemulator@6882 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21586 | 12 WGET_URL="https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}" |
slaxemulator@6882 | 13 |
pascal@15584 | 14 DEPENDS="glibc-base" |
pascal@15584 | 15 BUILD_DEPENDS="perl" |
pascal@15584 | 16 |
pascal@24076 | 17 current_version() |
pascal@24076 | 18 { |
pascal@24076 | 19 wget -O - https://hg.mozilla.org/projects/nspr 2>/dev/null | \ |
pascal@24076 | 20 sed '/_BRANCH/!d;s|.*NSPR_||;s|_BRANCH.*||;s|_|.|g;q' |
pascal@24076 | 21 } |
pascal@24076 | 22 |
slaxemulator@6882 | 23 # Rules to configure and make the package. |
slaxemulator@6882 | 24 compile_rules() |
slaxemulator@6882 | 25 { |
devl547@17788 | 26 cd $src/nspr |
Hans-G?nter@21586 | 27 ./configure \ |
Hans-G?nter@21586 | 28 --prefix=/usr \ |
Hans-G?nter@21586 | 29 --libdir=/usr/lib \ |
Hans-G?nter@21586 | 30 --includedir=/usr/include/nspr \ |
Hans-G?nter@21586 | 31 --enable-optimize \ |
Hans-G?nter@21586 | 32 --disable-debug \ |
Hans-G?nter@21586 | 33 --with-mozilla \ |
Hans-G?nter@21586 | 34 --with-pthreads \ |
domcox@14156 | 35 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \ |
pankso@10399 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@21586 | 37 make && |
Hans-G?nter@21586 | 38 make DESTDIR=$DESTDIR install |
slaxemulator@6882 | 39 } |
slaxemulator@6882 | 40 |
slaxemulator@6882 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6882 | 42 genpkg_rules() |
slaxemulator@6882 | 43 { |
Hans-G?nter@25003 | 44 cook_copy_files *.so* |
slaxemulator@6882 | 45 } |