wok-current view pango/receipt @ rev 16240

picoblog: browsers should not execute TARBALL on mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 03 07:03:51 2014 +0000 (2014-04-03)
parents 7ab1534edf55
children 128aae84d74c
line source
1 # SliTaz package receipt.
3 PACKAGE="pango"
4 VERSION="1.30.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Library for layout and rendering of 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 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"
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.6.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 $root/ /usr/bin/pango-querymodules > $root/etc/pango/pango.modules
58 }