wok view nspr/receipt @ rev 6928

Up: elfutils to 0.149. Fixed it to build in clean chroot. Fixed it also to download sources with real wget by since sources are on https host. So now elfutils can download its sources just fine.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 22 22:36:22 2010 +0000 (2010-10-22)
parents
children 4f70798e8afa
line source
1 # SliTaz package receipt.
3 PACKAGE="nspr"
4 VERSION="4.8.6"
5 CATEGORY="utilities"
6 SHORT_DESC="Netscape Portable Runtime"
7 MAINTAINER="rocky@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="perl"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.mozilla.org/projects/nspr/"
12 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./mozilla/nsprpub/configure \
19 --prefix=/usr \
20 --libdir=/usr/lib \
21 --includedir=/usr/include/nspr \
22 --enable-optimize \
23 --disable-debug
24 make
25 make DESTDIR="$PWD/_pkg" install
27 mkdir -p $PWD/_pkg/usr/lib/pkgconfig
28 NSPR_LIBS=`./config/nspr-config --libs`
29 NSPR_CFLAGS=`./config/nspr-config --cflags`
30 NSPR_VERSION=`./config/nspr-config --version`
31 install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
32 sed "../stuff/nspr.pc.in" -e "s,%libdir%,/usr/lib," \
33 -e "s,%prefix%,/usr," \
34 -e "s,%exec_prefix%,/usr/bin," \
35 -e "s,%includedir%,/usr/include/nspr," \
36 -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \
37 -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \
38 -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," > "$PWD/_pkg/usr/lib/pkgconfig/nspr.pc"
39 ln -sf nspr.pc "$PWD/_pkg/usr/lib/pkgconfig/mozilla-nspr.pc"
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
48 rm $fs/usr/bin/nspr-config
49 }