wok annotate libsdl2-image/receipt @ rev 24447

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 17:51:14 2022 +0000 (2022-02-14)
parents da134f47b369
children c3b5dafdd798
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"
tcg@17134 8 LICENSE="LGPL2.1"
Hans-G?nter@21303 9 WEB_SITE="http://www.libsdl.org/projects/SDL_image/"
Hans-G?nter@21303 10
Hans-G?nter@21303 11 SOURCE="SDL2_image"
tcg@17134 12 TARBALL="$SOURCE-$VERSION.tar.gz"
tcg@17134 13 WGET_URL="http://www.libsdl.org/projects/SDL_image/release/$TARBALL"
Hans-G?nter@21303 14
Hans-G?nter@21303 15 DEPENDS="jpeg libpng libsdl2 tiff zlib"
Hans-G?nter@21303 16 BUILD_DEPENDS="jpeg-dev libpng-dev libsdl2-dev tiff-dev zlib-dev"
Hans-G?nter@21303 17
tcg@17134 18 HOST_ARCH="i486 arm"
tcg@17134 19
pascal@24447 20 # What is the latest version available today?
pascal@24447 21 current_version()
pascal@24447 22 {
pascal@24447 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24447 24 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 25 }
pascal@24447 26
tcg@17134 27 # Rules to configure and make the package.
tcg@17134 28 compile_rules()
tcg@17134 29 {
tcg@17134 30 ./configure $CONFIGURE_ARGS \
tcg@17134 31 LIBS=" -lz " &&
Hans-G?nter@21303 32 make -j 1 &&
Hans-G?nter@21303 33 make install
tcg@17134 34 }
tcg@17134 35
tcg@17134 36 # Rules to gen a SliTaz package suitable for Tazpkg.
tcg@17134 37 genpkg_rules()
tcg@17134 38 {
tcg@17134 39 mkdir -p $fs/usr/lib
tcg@17134 40 cp -a $install/usr/lib/*.so* $fs/usr/lib
tcg@17134 41 }