wok-6.x view pango/receipt @ rev 25372

updated trash-cli (0.17.1.14 -> 0.22.4.16)
author Hans-G?nter Theisgen
date Fri Jul 29 14:58:56 2022 +0100 (2022-07-29)
parents 6831608a1b2a
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://www.pango.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 current_version()
28 {
29 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
30 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
31 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --prefix=/usr \
39 --sysconfdir=/etc \
40 --with-html-dir=/usr/share/doc \
41 $CONFIGURE_ARGS $ARCH_ARGS &&
42 make && make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango
49 cp -a $install/usr/bin/* $fs/usr/bin
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/pango $fs/usr/lib
52 rm -rf $fs/usr/lib/pango/1.8.0/modules/*.la
53 [ -d "$install/etc" ] && cp -a $install/etc $fs
54 touch $fs/etc/pango/pango.modules
55 }
57 # Pre and post install commands for Tazpkg.
58 post_install()
59 {
60 # Rebuilds pango.modules when installed.
61 chroot "$1/" /usr/bin/pango-querymodules > "$1/etc/pango/pango.modules"
62 }