wok-next view pngquant/receipt @ rev 19638

Up tcl, tk, py3k, iso-codes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Feb 13 02:23:31 2017 +0200 (2017-02-13)
parents 73e9a7d984fc
children 028634d82da8
line source
1 # SliTaz package receipt.
3 PACKAGE="pngquant"
4 VERSION="2.8.2"
5 CATEGORY="graphics"
6 SHORT_DESC="Command-line utility and a library for lossy compression of PNG images"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://pngquant.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GITHUB/pornel/pngquant/tarball/$VERSION"
14 EXTRA_TARBALL="libimagequant-$VERSION"
15 EXTRA_WGET_URL="$GITHUB/ImageOptim/libimagequant/tarball/$VERSION"
17 DEPENDS="lcms2 libpng zlib"
18 BUILD_DEPENDS="lcms2-dev libpng-dev zlib-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 if [ ! -e "$SRC/$EXTRA_TARBALL" ]; then
24 wget -O $SRC/$EXTRA_TARBALL $EXTRA_WGET_URL
25 fi
26 tar -xf $SRC/$EXTRA_TARBALL -C $src
27 mv $src/ImageOptim-*/* $src/lib/
29 ./configure \
30 --prefix=/usr &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_files pngquant
38 }