wok-stable view pango/receipt @ rev 11828

Up: dokuwiki (2012.01.25)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Feb 27 00:38:58 2012 +0100 (2012-02-27)
parents 79b4cd93d448
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pango"
4 VERSION="1.29.4"
5 CATEGORY="x-window"
6 SHORT_DESC="Library for layout and rendering of text."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.pango.org/"
10 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
11 CONFIG_FILES="/etc/pango/pango.modules"
13 DEPENDS="cairo glib expat libxml2 xorg-libXft fontconfig freetype xcb-util \
14 bzlib slitaz-base-files"
15 BUILD_DEPENDS="$DEPENDS cairo-dev glib-dev expat-dev libxml2-dev \
16 xorg-libXft-dev libgio-dev gobject-introspection-dev pkg-config"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --mandir=/usr/share/man \
26 --with-html-dir=/usr/share/doc \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin $fs/usr/lib
36 cp -a $install/usr/bin/* $fs/usr/bin
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 cp -a $install/usr/lib/pango $fs/usr/lib
39 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
40 rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la
41 cp -a $install/etc $fs
42 touch $fs/etc/pango/pango.modules
43 }
45 # Pre and post install commands for Tazpkg.
46 post_install()
47 {
48 echo "Processing post-install commands..."
49 # Rebuilds pango.modules when installed.
50 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
51 }