wok annotate pngrewrite/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents 73e9a7d984fc
children
rev   line source
al@19128 1 # SliTaz package receipt.
al@19128 2
al@19128 3 PACKAGE="pngrewrite"
al@19128 4 VERSION="1.4.0"
al@19128 5 CATEGORY="graphics"
al@19128 6 SHORT_DESC="Utility to reduce unnecessarily large palettes and bit depths in PNG image files"
al@19128 7 MAINTAINER="al.bobylev@gmail.com"
al@19128 8 LICENSE="zlib/libpng"
al@19128 9 WEB_SITE="http://entropymine.com/jason/pngrewrite/"
al@19128 10 TARBALL="$PACKAGE-$VERSION.zip"
al@19128 11 WGET_URL="${WEB_SITE}$TARBALL"
al@19128 12
al@19128 13 DEPENDS="libpng"
al@19128 14 BUILD_DEPENDS="libpng-dev zlib-dev"
al@19128 15
pascal@24425 16 # What is the latest version available today?
pascal@24425 17 current_version()
pascal@24425 18 {
pascal@24425 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 20 sed "/latest/d;/$PACKAGE-/!d;/zip/!d;s|.*$PACKAGE-\\(.*\\).zip.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 21 }
pascal@24425 22
al@19128 23 # Rules to configure and make the package.
al@19128 24 compile_rules()
al@19128 25 {
al@19128 26 make
al@19128 27
al@19128 28 mkdir -p $install/usr/bin
al@19128 29 cp -a $src/pngrewrite $install/usr/bin
al@19128 30 }
al@19128 31
al@19128 32 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19128 33 genpkg_rules()
al@19128 34 {
al@19128 35 cp -a $install/* $fs
al@19128 36 }