wok annotate optipng/receipt @ rev 21196

libaio: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 06 10:33:42 2019 +0200 (2019-04-06)
parents c77465c3f3e0
children 91d4ae5b7999
rev   line source
pankso@3348 1 # SliTaz package receipt.
pankso@3348 2
pankso@3348 3 PACKAGE="optipng"
devl547@17576 4 VERSION="0.7.5"
al@14737 5 CATEGORY="utilities"
pankso@3348 6 SHORT_DESC="A command line tool to compress and optimize PNG images."
pankso@3348 7 MAINTAINER="pankso@slitaz.org"
al@14737 8 LICENSE="zlib/libpng"
al@14737 9 WEB_SITE="http://optipng.sourceforge.net/"
pankso@3348 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@3348 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4970 12 TAGS="image compression"
pankso@3348 13
al@14737 14 DEPENDS="libpng+apng"
al@14737 15 BUILD_DEPENDS="libpng+apng-dev zlib-dev"
al@14737 16
pankso@3348 17 # Rules to configure and make the package.
pankso@3348 18 compile_rules()
pankso@3348 19 {
pascal@19293 20 sed -i 's|prefix)/man|prefix)/share/man|' configure
al@14737 21 ./configure \
al@14737 22 -prefix=/usr \
al@14737 23 -with-system-libpng &&
devl547@5530 24 make &&
al@14737 25 make test &&
al@14737 26 make install
pankso@3348 27 }
pankso@3348 28
pankso@3348 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3348 30 genpkg_rules()
pankso@3348 31 {
al@14737 32 mkdir -p \
al@14737 33 $fs/usr/bin \
al@14737 34 $fs/usr/share/licenses
al@14737 35 cp -a $src/LICENSE.txt $fs/usr/share/licenses/$PACKAGE.txt
al@14737 36 cp -a $install/usr/bin $fs/usr
pankso@3348 37 }