wok annotate libsdl2-ttf/receipt @ rev 25603

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 11:43:32 2023 +0000 (10 months ago)
parents 538acd8dcbb5
children
rev   line source
tcg@17137 1 # SliTaz package receipt.
tcg@17137 2
tcg@17137 3 PACKAGE="libsdl2-ttf"
Hans-G?nter@24825 4 VERSION="2.0.18"
tcg@17137 5 CATEGORY="x-window"
tcg@17137 6 SHORT_DESC="SDL2 ttf support."
tcg@17137 7 MAINTAINER="tcg.thegamer@gmail.com"
Hans-G?nter@24825 8 LICENSE="Zlib"
Hans-G?nter@24825 9 WEB_SITE="https://github.com/libsdl-org/SDL_ttf"
Hans-G?nter@21305 10
Hans-G?nter@21305 11 SOURCE="SDL2_ttf"
tcg@17137 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@24825 13 WGET_URL="$WEB_SITE/archive/refs/tags/release-$VERSION.tar.gz"
Hans-G?nter@21305 14
Hans-G?nter@24825 15 DEPENDS="freetype gcc83-lib-base libsdl2 zlib"
Hans-G?nter@24825 16 BUILD_DEPENDS="freetype-dev gcc83 libsdl2-dev"
Hans-G?nter@21305 17
tcg@17137 18 HOST_ARCH="i486 arm"
tcg@17137 19
pascal@24447 20 # What is the latest version available today?
pascal@24447 21 current_version()
pascal@24447 22 {
pascal@25603 23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@25603 24 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
pascal@24447 25 }
pascal@24447 26
tcg@17137 27 # Rules to configure and make the package.
tcg@17137 28 compile_rules()
tcg@17137 29 {
Hans-G?nter@24825 30 ./configure \
Hans-G?nter@24825 31 CC=gcc-83 \
Hans-G?nter@24825 32 CXX=g++-83 \
Hans-G?nter@24825 33 $CONFIGURE_ARGS &&
Hans-G?nter@24825 34 make &&
Hans-G?nter@21305 35 make install
tcg@17137 36 }
tcg@17137 37
tcg@17137 38 # Rules to gen a SliTaz package suitable for Tazpkg.
tcg@17137 39 genpkg_rules()
tcg@17137 40 {
Hans-G?nter@24825 41 cook_copy_files *.so*
tcg@17137 42 }