wok annotate pango/receipt @ rev 10758

nanochess: get source in $SOURCES_REPOSITORY (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 31 11:51:33 2011 +0200 (2011-05-31)
parents fd2d738281c0
children ef5ca15dbd28
rev   line source
pankso@22 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="pango"
slaxemulator@9486 4 VERSION="1.28.4"
pankso@22 5 CATEGORY="x-window"
pankso@22 6 SHORT_DESC="Library for layout and rendering of text."
pankso@22 7 MAINTAINER="pankso@slitaz.org"
pascal@5005 8 DEPENDS="cairo glib expat libxml2 xorg-libXft fontconfig freetype xcb-util"
slaxemulator@6676 9 BUILD_DEPENDS="$DEPENDS cairo-dev glib-dev expat-dev libxml2-dev xorg-libXft-dev libgio-dev gobject-introspection-dev pkg-config"
pankso@22 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@22 11 WEB_SITE="http://www.pango.org/"
rcx@6018 12 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/pango/${VERSION%.*}/$TARBALL"
pascal@1634 13 CONFIG_FILES="/etc/pango"
pankso@22 14
pankso@22 15 # Rules to configure and make the package.
pankso@22 16 compile_rules()
pankso@22 17 {
pankso@22 18 cd $src
pankso@547 19 ./configure \
pankso@547 20 --prefix=/usr \
pankso@547 21 --sysconfdir=/etc \
pankso@547 22 --mandir=/usr/share/man \
pankso@547 23 --with-html-dir=/usr/share/doc \
pascal@1634 24 $CONFIGURE_ARGS &&
pascal@1634 25 make &&
pankso@22 26 make DESTDIR=$PWD/_pkg install
pankso@22 27 }
pankso@22 28
pankso@22 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@22 30 genpkg_rules()
pankso@22 31 {
pankso@22 32 mkdir -p $fs/usr/bin $fs/usr/lib
pankso@22 33 cp -a $_pkg/usr/bin/* $fs/usr/bin
pankso@22 34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@22 35 cp -a $_pkg/usr/lib/pango $fs/usr/lib
slaxemulator@6957 36 cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib
pankso@577 37 rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la
pankso@22 38 cp -a $_pkg/etc $fs
gokhlayeh@9472 39 touch $fs/etc/pango/pango.modules
pankso@22 40 }
pankso@22 41
pankso@22 42 # Pre and post install commands for Tazpkg.
pankso@22 43 post_install()
pankso@22 44 {
pankso@22 45 echo "Processing post-install commands..."
pankso@22 46 # Rebuils pango.modules when installed.
pascal@5125 47 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
pankso@22 48 }
slaxemulator@6397 49