SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pngquant"

# 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
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)