wok annotate optipng/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 91d4ae5b7999
children 7dd01dedad38
rev   line source
pankso@3348 1 # SliTaz package receipt.
pankso@3348 2
pankso@3348 3 PACKAGE="optipng"
Hans-G?nter@23266 4 VERSION="0.7.7"
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"
al@14737 10 WEB_SITE="http://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@24396 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;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 }