wok annotate pango/receipt @ rev 390
Slitaz-loram-cdrom: decrease memory footprint a bit
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 09 13:00:33 2008 +0000 (2008-03-09) |
parents | ad5e33e4dad7 |
children | d5e75812e704 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="pango" |
pankso@22 | 4 VERSION="1.14.8" |
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" |
pankso@115 | 8 BUILD_DEPENDS="cairo-dev glib-dev" |
pankso@22 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 10 WEB_SITE="http://www.pango.org/" |
pankso@22 | 11 WGET_URL="ftp://ftp.gtk.org/pub/pango/1.14/$TARBALL" |
pankso@22 | 12 |
pankso@22 | 13 # Rules to configure and make the package. |
pankso@22 | 14 compile_rules() |
pankso@22 | 15 { |
pankso@22 | 16 cd $src |
pankso@22 | 17 ./configure --prefix=/usr --sysconfdir=/etc \ |
pankso@22 | 18 --mandir=/usr/share/man --with-html-dir=/usr/share/doc \ |
pankso@22 | 19 $CONFIGURE_ARGS |
pankso@22 | 20 make |
pankso@22 | 21 make DESTDIR=$PWD/_pkg install |
pankso@22 | 22 } |
pankso@22 | 23 |
pankso@22 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 25 genpkg_rules() |
pankso@22 | 26 { |
pankso@22 | 27 mkdir -p $fs/usr/bin $fs/usr/lib |
pankso@22 | 28 cp -a $_pkg/usr/bin/* $fs/usr/bin |
pankso@22 | 29 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@22 | 30 cp -a $_pkg/usr/lib/pango $fs/usr/lib |
pankso@22 | 31 rm -rf $fs/usr/lib/pango/1.5.0/modules/*.la |
pankso@22 | 32 cp -a $_pkg/etc $fs |
pankso@22 | 33 pango-querymodules > $fs/etc/pango/pango.modules |
pankso@22 | 34 # Strip. |
pankso@22 | 35 strip --strip-unneeded $fs/usr/bin/* |
pankso@22 | 36 strip --strip-unneeded $fs/usr/lib/*.so* |
pankso@22 | 37 strip --strip-unneeded $fs/usr/lib/pango/1.5.0/modules/* |
pankso@22 | 38 } |
pankso@22 | 39 |
pankso@22 | 40 # Pre and post install commands for Tazpkg. |
pankso@22 | 41 post_install() |
pankso@22 | 42 { |
pankso@22 | 43 local root |
pankso@22 | 44 root=$1 |
pankso@22 | 45 echo "Processing post-install commands..." |
pankso@22 | 46 # Rebuils pango.modules when installed. |
pankso@22 | 47 pango-querymodules > $root/etc/pango/pango.modules |
pankso@22 | 48 } |
pankso@22 | 49 SELF_INSTALL=1 |