wok-current annotate pango/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (2 weeks ago) |
parents | 3ad63c8fc2f9 |
children |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="pango" |
shann@25634 | 4 VERSION="1.48.11" |
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" |
shann@25728 | 13 HOST_ARCH="i486 arm x86_64" |
slaxemulator@11055 | 14 |
shann@25634 | 15 DEPENDS="cairo xorg-libXft slitaz-base-files gcc-lib-base \ |
shann@25634 | 16 util-linux-uuid fribidi" |
shann@25634 | 17 BUILD_DEPENDS="cairo-dev libxml2-dev xorg-libXft-dev \ |
shann@25634 | 18 meson fribidi-dev harfbuzz-dev" |
pankso@16084 | 19 |
pankso@16084 | 20 # Handle cross compilation |
pankso@16084 | 21 case "$ARCH" in |
shann@25728 | 22 i?86|x86_64) |
pankso@16133 | 23 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; |
pankso@16133 | 24 arm*) |
pankso@16133 | 25 export LIBTOOL=${HOST_SYSTEM}-libtool |
pankso@16133 | 26 ARCH_ARGS="--enable-introspection=no" ;; |
pankso@16084 | 27 esac |
pankso@16084 | 28 |
pascal@24072 | 29 current_version() |
pascal@24072 | 30 { |
pascal@24072 | 31 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \ |
pascal@24072 | 32 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24072 | 33 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24072 | 34 } |
pascal@24072 | 35 |
pankso@16133 | 36 # Rules to configure and make the package. |
pankso@22 | 37 compile_rules() |
pankso@22 | 38 { |
shann@25634 | 39 meson build \ |
shann@25634 | 40 --prefix=/usr \ |
shann@25634 | 41 --libdir=lib \ |
shann@25634 | 42 --bindir=/usr/bin \ |
shann@25634 | 43 --sbindir=/usr/sbin \ |
shann@25634 | 44 --buildtype=release && |
shann@25634 | 45 ninja -C build && |
shann@25634 | 46 ninja -C build install |
pankso@22 | 47 } |
pankso@22 | 48 |
pankso@22 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 50 genpkg_rules() |
pankso@22 | 51 { |
shann@25634 | 52 mkdir -p $fs/usr/bin $fs/usr/lib |
al@17992 | 53 cp -a $install/usr/bin/* $fs/usr/bin |
al@17992 | 54 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@22 | 55 } |