wok-6.x annotate pango/receipt @ rev 25565
Reenable rpc for glibc, fix gpxe grub4dos receipt, fix linld url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue May 09 17:24:00 2023 +0000 (19 months ago) |
parents | 6831608a1b2a |
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@20671 | 10 WEB_SITE="https://www.pango.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@24072 | 27 current_version() |
pascal@24072 | 28 { |
pascal@24072 | 29 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \ |
pascal@24072 | 30 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24072 | 31 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24072 | 32 } |
pascal@24072 | 33 |
pankso@16133 | 34 # Rules to configure and make the package. |
pankso@22 | 35 compile_rules() |
pankso@22 | 36 { |
pankso@16133 | 37 ./configure \ |
pankso@16133 | 38 --prefix=/usr \ |
pankso@16133 | 39 --sysconfdir=/etc \ |
pankso@16133 | 40 --with-html-dir=/usr/share/doc \ |
pankso@16133 | 41 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@16133 | 42 make && make install |
pankso@22 | 43 } |
pankso@22 | 44 |
pankso@22 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 46 genpkg_rules() |
pankso@22 | 47 { |
pankso@16133 | 48 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango |
al@17992 | 49 cp -a $install/usr/bin/* $fs/usr/bin |
al@17992 | 50 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@17992 | 51 cp -a $install/usr/lib/pango $fs/usr/lib |
al@17992 | 52 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la |
al@17992 | 53 [ -d "$install/etc" ] && cp -a $install/etc $fs |
al@17992 | 54 touch $fs/etc/pango/pango.modules |
pankso@22 | 55 } |
pankso@22 | 56 |
pankso@22 | 57 # Pre and post install commands for Tazpkg. |
pankso@22 | 58 post_install() |
pankso@22 | 59 { |
al@17992 | 60 # Rebuilds pango.modules when installed. |
al@18640 | 61 chroot "$1/" /usr/bin/pango-querymodules > "$1/etc/pango/pango.modules" |
pankso@22 | 62 } |