SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pngcrush"

# 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|.*a href="|"https://sourceforge.net|;s| .*||;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
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)