# SliTaz package receipt. PACKAGE="pngquant" VERSION="2.12.5" CATEGORY="graphics" SHORT_DESC="Command-line utility and a library for lossy compression of PNG images." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL3" WEB_SITE="https://pngquant.org/" TARBALL="$PACKAGE-$VERSION-src.tar.gz" WGET_URL="${WEB_SITE}$TARBALL" DEPENDS="lcms2 libpng" BUILD_DEPENDS="lcms2-dev libpng-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/kornelski/pngquant/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make install find $install -name pngquant.1 -exec gzip -9 \{\} \; } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }