wok-6.x view pango/receipt @ rev 18603
slitaz-tools-boxes: config file?
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 16 03:00:15 2015 +0200 (2015-11-16) |
parents | db2a14c92f8b |
children | 78cbae08ac81 |
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 glib expat libxml2 xorg-libXft harfbuzz fontconfig freetype xcb-util \
16 bzlib slitaz-base-files gcc-lib-base"
17 BUILD_DEPENDS="cairo-dev glib-dev expat-dev libxml2-dev xorg-libXft-dev \
18 libgio-dev harfbuzz-dev fontconfig-dev freetype-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86)
23 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
24 arm*)
25 export LIBTOOL=${HOST_SYSTEM}-libtool
26 ARCH_ARGS="--enable-introspection=no" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --sysconfdir=/etc \
35 --with-html-dir=/usr/share/doc \
36 $CONFIGURE_ARGS $ARCH_ARGS &&
37 make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango
44 cp -a $install/usr/bin/* $fs/usr/bin
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/pango $fs/usr/lib
47 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la
48 [ -d "$install/etc" ] && cp -a $install/etc $fs
49 touch $fs/etc/pango/pango.modules
50 }
52 # Pre and post install commands for Tazpkg.
53 post_install()
54 {
55 echo "Processing post-install commands..."
56 # Rebuilds pango.modules when installed.
57 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
58 }