SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pango"

# SliTaz package receipt.

PACKAGE="pango"
VERSION="1.48.11"
CATEGORY="x-window"
SHORT_DESC="Layout and rendering of internationalized text"
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://www.pango.org/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
CONFIG_FILES="/etc/pango/pango.modules"
HOST_ARCH="i486 arm"

DEPENDS="cairo xorg-libXft slitaz-base-files gcc-lib-base \
util-linux-uuid fribidi"
BUILD_DEPENDS="cairo-dev libxml2-dev xorg-libXft-dev \
meson fribidi-dev harfbuzz-dev"

# Handle cross compilation
case "$ARCH" in
    i?86)
        BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
    arm*)
        export LIBTOOL=${HOST_SYSTEM}-libtool
        ARCH_ARGS="--enable-introspection=no" ;;
esac

current_version()
{
    wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
    sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
    sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
}

# Rules to configure and make the package. 
compile_rules()
{
        meson build \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
            --buildtype=release &&
        ninja -C build &&
        ninja -C build install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/lib
    cp -a $install/usr/bin/* $fs/usr/bin
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)