wok-current view pngcrush/receipt @ rev 25510

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 20:36:56 2023 +0000 (22 months ago)
parents ad0bc3efbf37
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|.*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 }