wok-next annotate glib/receipt @ rev 13509

Up ncdu (1.9)
author Paul Issott <paul@slitaz.org>
date Sun Oct 14 20:46:46 2012 +0100 (2012-10-14)
parents b6b11a776057
children 380ffe05937a
rev   line source
pascal@6023 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="glib"
pascal@13394 4 VERSION="2.32.4"
pankso@22 5 CATEGORY="x-window"
pankso@22 6 SHORT_DESC="C routines."
pankso@22 7 MAINTAINER="pankso@slitaz.org"
pankso@12471 8 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@22 9 WEB_SITE="http://www.gtk.org/"
slaxemulator@10985 10 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
pankso@22 11
pankso@12471 12 DEPENDS="pcre libffi libxml2 elfutils"
pankso@12471 13 BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python python-dev \
pankso@12471 14 elfutils-dev libxml2-dev libxml2-tools"
slaxemulator@10804 15
pankso@22 16 # Rules to configure and make the package.
pankso@22 17 compile_rules()
pankso@22 18 {
pankso@842 19 cd $src
slaxemulator@10245 20 ./configure --sysconfdir=/etc \
pankso@12471 21 --with-pcre=system \
pankso@12471 22 $CONFIGURE_ARGS &&
slaxemulator@10245 23 make && make install
pankso@22 24 }
pankso@22 25
pankso@22 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@22 27 genpkg_rules()
pankso@22 28 {
pankso@547 29 mkdir -p $fs/usr/lib
slaxemulator@11626 30 cp -a $install/usr/bin $fs/usr
slaxemulator@10985 31 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12471 32
pankso@12471 33 # Split gio --> libgio
pankso@842 34 rm $fs/usr/lib/libgio*
pankso@12471 35
slaxemulator@12597 36 # Python codegen, tester, Perl mkenums --> glib-dev
slaxemulator@12597 37 for bin in gdbus-codegen gtester* glib-mkenums
pankso@12471 38 do
pankso@12471 39 rm $fs/usr/bin/$bin
pankso@12471 40 done
pankso@12471 41
pankso@12471 42 # Cook packages that want glib.
pankso@12471 43 for w in libgio libgio-dev
pankso@12471 44 do
pankso@12471 45 [ -x "/usr/bin/cook" ] && cook $w
pankso@12471 46 done
pankso@22 47 }