wok-next view pango/receipt @ rev 18956

Add python-peak-rules package; add it to python-turbogears dependencies
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 09 02:21:29 2016 +0200 (2016-03-09)
parents f9743cf20afc
children ab700369c193
line source
1 # SliTaz package receipt.
3 PACKAGE="pango"
4 VERSION="1.36.8"
5 CATEGORY="x-window"
6 SHORT_DESC="Layout and rendering of internationalized text"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.pango.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 CONFIG_FILES="/etc/pango/pango.modules"
13 HOST_ARCH="i486 arm"
15 DEPENDS="cairo xorg-libXft slitaz-base-files gcc-lib-base"
16 BUILD_DEPENDS="cairo-dev libxml2-dev xorg-libXft-dev"
18 # Handle cross compilation
19 case "$ARCH" in
20 i?86)
21 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
22 arm*)
23 export LIBTOOL=${HOST_SYSTEM}-libtool
24 ARCH_ARGS="--enable-introspection=no" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --with-html-dir=/usr/share/doc \
34 $CONFIGURE_ARGS $ARCH_ARGS &&
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango
42 cp -a $install/usr/bin/* $fs/usr/bin
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/lib/pango $fs/usr/lib
45 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la
46 [ -d "$install/etc" ] && cp -a $install/etc $fs
47 touch $fs/etc/pango/pango.modules
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 # Rebuilds pango.modules when installed.
54 chroot "$1/" /usr/bin/pango-querymodules > "$1/etc/pango/pango.modules"
55 }