# SliTaz package receipt. PACKAGE="libsdl2-image" VERSION="2.0.5" CATEGORY="development" SHORT_DESC="An image file loading library." MAINTAINER="tcg.thegamer@gmail.com" LICENSE="Zlib" WEB_SITE="https://www.libsdl.org/projects/SDL_image/" REPOLOGY="sdl2-image" SOURCE="SDL2_image" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}release/$TARBALL" DEPENDS="jpeg libpng libsdl2 tiff zlib" BUILD_DEPENDS="jpeg-dev libpng-dev libsdl2-dev tiff-dev zlib-dev" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ LIBS=" -lz " \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files *.so* }