wok-current annotate libsdl2-image/receipt @ rev 24824

updated libsdl2-image and libsdl2-image-dev (2.0.4 -> 2.0.5)
author Hans-G?nter Theisgen
date Wed Mar 23 16:49:16 2022 +0100 (2022-03-23)
parents ede1d184d5c5
children
rev   line source
tcg@17134 1 # SliTaz package receipt.
tcg@17134 2
tcg@17134 3 PACKAGE="libsdl2-image"
pascal@23840 4 VERSION="2.0.5"
tcg@17134 5 CATEGORY="development"
tcg@17134 6 SHORT_DESC="An image file loading library."
tcg@17134 7 MAINTAINER="tcg.thegamer@gmail.com"
Hans-G?nter@24824 8 LICENSE="Zlib"
Hans-G?nter@24824 9 WEB_SITE="https://www.libsdl.org/projects/SDL_image/"
Hans-G?nter@24824 10 REPOLOGY="sdl2-image"
Hans-G?nter@21303 11
Hans-G?nter@21303 12 SOURCE="SDL2_image"
tcg@17134 13 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@24824 14 WGET_URL="${WEB_SITE}release/$TARBALL"
Hans-G?nter@21303 15
Hans-G?nter@21303 16 DEPENDS="jpeg libpng libsdl2 tiff zlib"
Hans-G?nter@21303 17 BUILD_DEPENDS="jpeg-dev libpng-dev libsdl2-dev tiff-dev zlib-dev"
Hans-G?nter@21303 18
tcg@17134 19 HOST_ARCH="i486 arm"
tcg@17134 20
pascal@24447 21 # What is the latest version available today?
pascal@24447 22 current_version()
pascal@24447 23 {
pascal@24447 24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24447 25 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 26 }
pascal@24447 27
tcg@17134 28 # Rules to configure and make the package.
tcg@17134 29 compile_rules()
tcg@17134 30 {
Hans-G?nter@24824 31 ./configure \
Hans-G?nter@24824 32 LIBS=" -lz " \
Hans-G?nter@24824 33 $CONFIGURE_ARGS &&
Hans-G?nter@24824 34 make &&
Hans-G?nter@21303 35 make install
tcg@17134 36 }
tcg@17134 37
tcg@17134 38 # Rules to gen a SliTaz package suitable for Tazpkg.
tcg@17134 39 genpkg_rules()
tcg@17134 40 {
Hans-G?nter@24824 41 cook_copy_files *.so*
tcg@17134 42 }