wok annotate pango/receipt @ rev 25816
Update clonezilla to strict coreutils needed
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Feb 28 16:38:12 2025 +0100 (12 hours ago) |
parents | b77195a00671 |
children |
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@25777 | 10 WEB_SITE="https://pango.gnome.org/" |
pascal@24112 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
slaxemulator@11055 | 12 CONFIG_FILES="/etc/pango/pango.modules" |
pankso@16133 | 13 HOST_ARCH="i486 arm" |
slaxemulator@11055 | 14 |
pascal@23927 | 15 DEPENDS="cairo xorg-libXft slitaz-base-files gcc-lib-base util-linux-uuid" |
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 |
pascal@25777 | 27 # What is the latest version available today? |
pascal@24072 | 28 current_version() |
pascal@24072 | 29 { |
pascal@24072 | 30 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \ |
pascal@24072 | 31 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24072 | 32 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24072 | 33 } |
pascal@24072 | 34 |
pankso@16133 | 35 # Rules to configure and make the package. |
pankso@22 | 36 compile_rules() |
pankso@22 | 37 { |
pankso@16133 | 38 ./configure \ |
pankso@16133 | 39 --prefix=/usr \ |
pankso@16133 | 40 --sysconfdir=/etc \ |
pankso@16133 | 41 --with-html-dir=/usr/share/doc \ |
pankso@16133 | 42 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@16133 | 43 make && make install |
pankso@22 | 44 } |
pankso@22 | 45 |
pankso@22 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 47 genpkg_rules() |
pankso@22 | 48 { |
pankso@16133 | 49 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango |
al@17992 | 50 cp -a $install/usr/bin/* $fs/usr/bin |
al@17992 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@17992 | 52 cp -a $install/usr/lib/pango $fs/usr/lib |
al@17992 | 53 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la |
al@17992 | 54 [ -d "$install/etc" ] && cp -a $install/etc $fs |
al@17992 | 55 touch $fs/etc/pango/pango.modules |
pankso@22 | 56 } |
pankso@22 | 57 |
pankso@22 | 58 # Pre and post install commands for Tazpkg. |
pankso@22 | 59 post_install() |
pankso@22 | 60 { |
al@17992 | 61 # Rebuilds pango.modules when installed. |
al@18640 | 62 chroot "$1/" /usr/bin/pango-querymodules > "$1/etc/pango/pango.modules" |
pankso@22 | 63 } |