wok-current view nspr/receipt @ rev 24809

created recipes for libmypaint, libmypaint-dev and libmypaint-lang
author Hans-G?nter Theisgen
date Tue Mar 22 16:52:59 2022 +0100 (2022-03-22)
parents e5abc956d567
children 1dd5aa4fec8e
line source
1 # SliTaz package receipt.
3 PACKAGE="nspr"
4 VERSION="4.25"
5 CATEGORY="utilities"
6 SHORT_DESC="Netscape Portable Runtime."
7 MAINTAINER="rocky@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="https://developer.mozilla.org/docs/Mozilla/Projects/NSPR"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="perl"
17 current_version()
18 {
19 wget -O - https://hg.mozilla.org/projects/nspr 2>/dev/null | \
20 sed '/_BRANCH/!d;s|.*NSPR_||;s|_BRANCH.*||;s|_|.|g;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/nspr
27 ./configure \
28 --prefix=/usr \
29 --libdir=/usr/lib \
30 --includedir=/usr/include/nspr \
31 --enable-optimize \
32 --disable-debug \
33 --with-mozilla \
34 --with-pthreads \
35 $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*so* $fs/usr/lib
46 }