wok view optipng/receipt @ rev 25112

updated patchelf (0.10 -> 0.14.5)
author Hans-G?nter Theisgen
date Sat Jun 25 15:14:46 2022 +0100 (2022-06-25)
parents 91d4ae5b7999
children 7dd01dedad38
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="http://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 }