wok view pngquant/receipt @ rev 24955

updated nano and nano-doc (4.8 -> 6.2)
author Hans-G?nter Theisgen
date Sat Apr 23 16:34:46 2022 +0100 (2022-04-23)
parents 2f82f2467b46
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pngquant"
4 VERSION="2.12.5"
5 CATEGORY="graphics"
6 SHORT_DESC="Command-line utility and a library for lossy compression of PNG images."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://pngquant.org/"
11 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 DEPENDS="lcms2 libpng"
15 BUILD_DEPENDS="lcms2-dev libpng-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/kornelski/pngquant/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install
33 find $install -name pngquant.1 -exec gzip -9 \{\} \;
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 }