wok annotate libsdl-pango/receipt @ rev 25073

Up dropbear (2022.82)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 11 11:22:52 2022 +0000 (2022-06-11)
parents 412cfae4a54c
children 9a714ac859a3
rev   line source
slaxemulator@7409 1 # SliTaz package receipt.
slaxemulator@7409 2
slaxemulator@7409 3 PACKAGE="libsdl-pango"
slaxemulator@7409 4 VERSION="0.1.2"
slaxemulator@7409 5 CATEGORY="x-window"
slaxemulator@7409 6 SHORT_DESC="Pango SDL binding."
slaxemulator@7409 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14996 8 LICENSE="LGPL2.1"
slaxemulator@7409 9 SOURCE="SDL_Pango"
slaxemulator@7409 10 TARBALL="$SOURCE-$VERSION.tar.gz"
slaxemulator@7409 11 WEB_SITE="http://sdlpango.sourceforge.net/"
slaxemulator@7409 12 WGET_URL="$SF_MIRROR/sdlpango/$TARBALL"
pankso@16312 13 HOST_ARCH="i486 arm"
slaxemulator@7409 14
pascal@14718 15 DEPENDS="pango libsdl"
pascal@14720 16 BUILD_DEPENDS="pango-dev libsdl-dev pkg-config libxml2-dev"
pascal@14718 17
pankso@16312 18 # Handle cross compilation
pankso@16312 19 case "$ARCH" in
pankso@16312 20 arm*) ARCH_MAKE="LIBS=/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16312 21 esac
pankso@16312 22
pascal@24411 23 # What is the latest version available today?
pascal@24411 24 current_version()
pascal@24411 25 {
pascal@24411 26 wget -O - https://sourceforge.net/projects/sdlpango/files/SDL_Pango/ 2>/dev/null | \
pascal@24411 27 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 28 sed '/scope="row/!d;s|.*/SDL_Pango/||;s|/.*||;q'
pascal@24411 29 }
pascal@24411 30
slaxemulator@7409 31 # Rules to configure and make the package.
slaxemulator@7409 32 compile_rules()
slaxemulator@7409 33 {
slaxemulator@9700 34 patch -Np0 -i $stuff/SDL_Pango-$VERSION-API-adds.patch
slaxemulator@9700 35 patch -Np1 -i $stuff/matrix_declarations.patch
slaxemulator@7409 36 ./configure \
slaxemulator@7409 37 $CONFIGURE_ARGS &&
pankso@16312 38 make ${ARCH_MAKE} && make DESTDIR=$DESTDIR install
slaxemulator@7409 39 }
slaxemulator@7409 40
slaxemulator@7409 41 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7409 42 genpkg_rules()
slaxemulator@7409 43 {
slaxemulator@7409 44 mkdir -p $fs/usr/lib
pascal@14718 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@7409 46 }
slaxemulator@7409 47