wok view pngcrush/receipt @ rev 25607

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 19 13:00:59 2023 +0000 (10 months ago)
parents 69e1e705f038
children
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|.*a href="|"https://sourceforge.net|;s| .*||;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 }