# SliTaz package receipt. PACKAGE="pngcrush" VERSION="1.8.1" CATEGORY="graphics" SHORT_DESC="PNG optimizer" MAINTAINER="mimas@slitaz.org" LICENSE="zlib/libpng" WEB_SITE="https://sourceforge.net/projects/pmt/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$SF_MIRROR/pmt/$TARBALL" DEPENDS="glibc-base" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/pmt/files/pngcrush/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/pngcrush/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { make mkdir -p $install/usr/bin cp -a $src/pngcrush $install/usr/bin } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }