wok view pango/receipt @ rev 25777

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 17 17:25:51 2024 +0000 (3 months ago)
parents b77195a00671
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pango"
4 VERSION="1.36.8"
5 CATEGORY="x-window"
6 SHORT_DESC="Layout and rendering of internationalized text"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://pango.gnome.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 CONFIG_FILES="/etc/pango/pango.modules"
13 HOST_ARCH="i486 arm"
15 DEPENDS="cairo xorg-libXft slitaz-base-files gcc-lib-base util-linux-uuid"
16 BUILD_DEPENDS="cairo-dev libxml2-dev xorg-libXft-dev"
18 # Handle cross compilation
19 case "$ARCH" in
20 i?86)
21 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
22 arm*)
23 export LIBTOOL=${HOST_SYSTEM}-libtool
24 ARCH_ARGS="--enable-introspection=no" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
31 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
32 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 ./configure \
39 --prefix=/usr \
40 --sysconfdir=/etc \
41 --with-html-dir=/usr/share/doc \
42 $CONFIGURE_ARGS $ARCH_ARGS &&
43 make && make install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango
50 cp -a $install/usr/bin/* $fs/usr/bin
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/lib/pango $fs/usr/lib
53 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la
54 [ -d "$install/etc" ] && cp -a $install/etc $fs
55 touch $fs/etc/pango/pango.modules
56 }
58 # Pre and post install commands for Tazpkg.
59 post_install()
60 {
61 # Rebuilds pango.modules when installed.
62 chroot "$1/" /usr/bin/pango-querymodules > "$1/etc/pango/pango.modules"
63 }