SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pngrewrite"

# SliTaz package receipt.

PACKAGE="pngrewrite"
VERSION="1.4.0"
CATEGORY="graphics"
SHORT_DESC="Utility to reduce unnecessarily large palettes and bit depths in PNG image files"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="zlib/libpng"
WEB_SITE="http://entropymine.com/jason/pngrewrite/"
TARBALL="$PACKAGE-$VERSION.zip"
WGET_URL="${WEB_SITE}$TARBALL"

DEPENDS="libpng"
BUILD_DEPENDS="libpng-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-/!d;/zip/!d;s|.*$PACKAGE-\\(.*\\).zip.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    make

    mkdir -p $install/usr/bin
    cp -a $src/pngrewrite $install/usr/bin
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)