wok annotate optipng/receipt @ rev 25703
some perl-*: update web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 04 16:09:04 2024 +0000 (5 months ago) |
parents | 29df00e1e19d |
children |
rev | line source |
---|---|
pankso@3348 | 1 # SliTaz package receipt. |
pankso@3348 | 2 |
pankso@3348 | 3 PACKAGE="optipng" |
pascal@25671 | 4 VERSION="0.7.8" |
al@14737 | 5 CATEGORY="utilities" |
Hans-G?nter@23266 | 6 TAGS="image compression" |
pankso@3348 | 7 SHORT_DESC="A command line tool to compress and optimize PNG images." |
pankso@3348 | 8 MAINTAINER="pankso@slitaz.org" |
al@14737 | 9 LICENSE="zlib/libpng" |
pascal@25460 | 10 WEB_SITE="https://optipng.sourceforge.net/" |
Hans-G?nter@23266 | 11 |
pankso@3348 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@3348 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3348 | 14 |
al@14737 | 15 DEPENDS="libpng+apng" |
al@14737 | 16 BUILD_DEPENDS="libpng+apng-dev zlib-dev" |
al@14737 | 17 |
pascal@24396 | 18 # What is the latest version available today? |
pascal@24396 | 19 current_version() |
pascal@24396 | 20 { |
pascal@24396 | 21 wget -O - https://sourceforge.net/projects/optipng/files/OptiPNG/ 2>/dev/null | \ |
pascal@25607 | 22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 23 sed '/scope="row/!d;/tar/!d;s|.*/optipng-||;s|.tar.*||;q' |
pascal@24396 | 24 } |
pascal@24396 | 25 |
pankso@3348 | 26 # Rules to configure and make the package. |
pankso@3348 | 27 compile_rules() |
pankso@3348 | 28 { |
pascal@19293 | 29 sed -i 's|prefix)/man|prefix)/share/man|' configure |
Hans-G?nter@23266 | 30 |
Hans-G?nter@23266 | 31 ./configure \ |
Hans-G?nter@23266 | 32 -prefix=/usr \ |
al@14737 | 33 -with-system-libpng && |
devl547@5530 | 34 make && |
al@14737 | 35 make test && |
al@14737 | 36 make install |
pankso@3348 | 37 } |
pankso@3348 | 38 |
pankso@3348 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3348 | 40 genpkg_rules() |
pankso@3348 | 41 { |
Hans-G?nter@23266 | 42 mkdir -p $fs/usr/bin |
Hans-G?nter@23266 | 43 mkdir -p $fs/usr/share/licenses |
Hans-G?nter@23266 | 44 |
Hans-G?nter@23266 | 45 cp -a $src/LICENSE.txt $fs/usr/share/licenses/$PACKAGE.txt |
Hans-G?nter@23266 | 46 cp -a $install/usr/bin $fs/usr |
pankso@3348 | 47 } |