wok view pngcrush/receipt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (19 months ago)
parents 080c1dff8494
children 69e1e705f038
line source
1 # SliTaz package receipt.
3 PACKAGE="pngcrush"
4 VERSION="1.8.1"
5 CATEGORY="graphics"
6 SHORT_DESC="PNG optimizer"
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="zlib/libpng"
9 WEB_SITE="https://sourceforge.net/projects/pmt"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="$SF_MIRROR/pmt/$TARBALL"
13 DEPENDS="glibc-base"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/pmt/files/pngcrush/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/pngcrush/||;s|/.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make
28 mkdir -p $install/usr/bin
29 cp -a $src/pngcrush $install/usr/bin
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 }