wok view optipng/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents 080c1dff8494
children 29df00e1e19d
line source
1 # SliTaz package receipt.
3 PACKAGE="optipng"
4 VERSION="0.7.7"
5 CATEGORY="utilities"
6 TAGS="image compression"
7 SHORT_DESC="A command line tool to compress and optimize PNG images."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="zlib/libpng"
10 WEB_SITE="https://optipng.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="libpng+apng"
16 BUILD_DEPENDS="libpng+apng-dev zlib-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/optipng/files/OptiPNG/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;/tar/!d;s|.*/optipng-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|prefix)/man|prefix)/share/man|' configure
31 ./configure \
32 -prefix=/usr \
33 -with-system-libpng &&
34 make &&
35 make test &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 mkdir -p $fs/usr/share/licenses
45 cp -a $src/LICENSE.txt $fs/usr/share/licenses/$PACKAGE.txt
46 cp -a $install/usr/bin $fs/usr
47 }