wok-current annotate pango/receipt @ rev 22577
updated cabextract (1.9 -> 1.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jan 06 16:52:55 2020 +0100 (2020-01-06) |
parents | 124c3a7da04f |
children | f1f49f4e12a0 |
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" |
pascal@20671 | 10 WEB_SITE="https://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 |
al@18663 | 15 DEPENDS="cairo xorg-libXft slitaz-base-files gcc-lib-base" |
al@18663 | 16 BUILD_DEPENDS="cairo-dev libxml2-dev xorg-libXft-dev" |
pankso@16084 | 17 |
pankso@16084 | 18 # Handle cross compilation |
pankso@16084 | 19 case "$ARCH" in |
pankso@16133 | 20 i?86) |
pankso@16133 | 21 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; |
pankso@16133 | 22 arm*) |
pankso@16133 | 23 export LIBTOOL=${HOST_SYSTEM}-libtool |
pankso@16133 | 24 ARCH_ARGS="--enable-introspection=no" ;; |
pankso@16084 | 25 esac |
pankso@16084 | 26 |
pankso@16133 | 27 # Rules to configure and make the package. |
pankso@22 | 28 compile_rules() |
pankso@22 | 29 { |
pankso@16133 | 30 ./configure \ |
pankso@16133 | 31 --prefix=/usr \ |
pankso@16133 | 32 --sysconfdir=/etc \ |
pankso@16133 | 33 --with-html-dir=/usr/share/doc \ |
pankso@16133 | 34 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@16133 | 35 make && make install |
pankso@22 | 36 } |
pankso@22 | 37 |
pankso@22 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 39 genpkg_rules() |
pankso@22 | 40 { |
pankso@16133 | 41 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango |
al@17992 | 42 cp -a $install/usr/bin/* $fs/usr/bin |
al@17992 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@17992 | 44 cp -a $install/usr/lib/pango $fs/usr/lib |
al@17992 | 45 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la |
al@17992 | 46 [ -d "$install/etc" ] && cp -a $install/etc $fs |
al@17992 | 47 touch $fs/etc/pango/pango.modules |
pankso@22 | 48 } |
pankso@22 | 49 |
pankso@22 | 50 # Pre and post install commands for Tazpkg. |
pankso@22 | 51 post_install() |
pankso@22 | 52 { |
al@17992 | 53 # Rebuilds pango.modules when installed. |
al@18640 | 54 chroot "$1/" /usr/bin/pango-querymodules > "$1/etc/pango/pango.modules" |
pankso@22 | 55 } |