wok view pango/receipt @ rev 24687
Up musl-libc (1.2.2) CVE-2020-28928
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 12 11:02:58 2022 +0000 (2022-03-12) |
parents | 6831608a1b2a |
children | 150e1482d1b2 |
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 }