wok-6.x annotate pango/receipt @ rev 18640
Up tazpkg(876), cookutils(779); change post_install() in pango, slitaz-boot-scripts, syslinux, tazwikiss
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 30 01:53:13 2015 +0200 (2015-11-30) |
parents | 78cbae08ac81 |
children | 124c3a7da04f |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="pango" |
devl547@17596 | 4 VERSION="1.36.8" |
pankso@22 | 5 CATEGORY="x-window" |
al@17992 | 6 SHORT_DESC="Layout and rendering of internationalized text" |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
slaxemulator@13172 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@22 | 10 WEB_SITE="http://www.pango.org/" |
slaxemulator@11055 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
slaxemulator@11055 | 12 CONFIG_FILES="/etc/pango/pango.modules" |
pankso@16133 | 13 HOST_ARCH="i486 arm" |
slaxemulator@11055 | 14 |
yuripourre@16862 | 15 DEPENDS="cairo glib expat libxml2 xorg-libXft harfbuzz fontconfig freetype xcb-util \ |
al@18605 | 16 bzlib slitaz-base-files gcc-lib-base xorg-libXft" |
pankso@15911 | 17 BUILD_DEPENDS="cairo-dev glib-dev expat-dev libxml2-dev xorg-libXft-dev \ |
yuripourre@16862 | 18 libgio-dev harfbuzz-dev fontconfig-dev freetype-dev" |
pankso@16084 | 19 |
pankso@16084 | 20 # Handle cross compilation |
pankso@16084 | 21 case "$ARCH" in |
pankso@16133 | 22 i?86) |
pankso@16133 | 23 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; |
pankso@16133 | 24 arm*) |
pankso@16133 | 25 export LIBTOOL=${HOST_SYSTEM}-libtool |
pankso@16133 | 26 ARCH_ARGS="--enable-introspection=no" ;; |
pankso@16084 | 27 esac |
pankso@16084 | 28 |
pankso@16133 | 29 # Rules to configure and make the package. |
pankso@22 | 30 compile_rules() |
pankso@22 | 31 { |
pankso@16133 | 32 ./configure \ |
pankso@16133 | 33 --prefix=/usr \ |
pankso@16133 | 34 --sysconfdir=/etc \ |
pankso@16133 | 35 --with-html-dir=/usr/share/doc \ |
pankso@16133 | 36 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@16133 | 37 make && make install |
pankso@22 | 38 } |
pankso@22 | 39 |
pankso@22 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 41 genpkg_rules() |
pankso@22 | 42 { |
pankso@16133 | 43 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango |
al@17992 | 44 cp -a $install/usr/bin/* $fs/usr/bin |
al@17992 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@17992 | 46 cp -a $install/usr/lib/pango $fs/usr/lib |
al@17992 | 47 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la |
al@17992 | 48 [ -d "$install/etc" ] && cp -a $install/etc $fs |
al@17992 | 49 touch $fs/etc/pango/pango.modules |
pankso@22 | 50 } |
pankso@22 | 51 |
pankso@22 | 52 # Pre and post install commands for Tazpkg. |
pankso@22 | 53 post_install() |
pankso@22 | 54 { |
al@17992 | 55 # Rebuilds pango.modules when installed. |
al@18640 | 56 chroot "$1/" /usr/bin/pango-querymodules > "$1/etc/pango/pango.modules" |
pankso@22 | 57 } |