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