wok-current annotate pngquant/receipt @ rev 25444
Up firefox-official (104.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 04 18:56:05 2022 +0000 (2022-09-04) |
parents | 2f82f2467b46 |
children |
rev | line source |
---|---|
al@19128 | 1 # SliTaz package receipt. |
al@19128 | 2 |
al@19128 | 3 PACKAGE="pngquant" |
Hans-G?nter@23439 | 4 VERSION="2.12.5" |
al@19128 | 5 CATEGORY="graphics" |
Hans-G?nter@21688 | 6 SHORT_DESC="Command-line utility and a library for lossy compression of PNG images." |
al@19128 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19128 | 8 LICENSE="GPL3" |
al@19128 | 9 WEB_SITE="https://pngquant.org/" |
Hans-G?nter@21688 | 10 |
Hans-G?nter@21688 | 11 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
Hans-G?nter@23439 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
al@19128 | 13 |
al@19128 | 14 DEPENDS="lcms2 libpng" |
al@19128 | 15 BUILD_DEPENDS="lcms2-dev libpng-dev" |
al@19128 | 16 |
pascal@24433 | 17 # What is the latest version available today? |
pascal@24433 | 18 current_version() |
pascal@24433 | 19 { |
pascal@24433 | 20 wget -O - https://github.com/kornelski/pngquant/tags 2>/dev/null | \ |
pascal@24433 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24433 | 22 } |
pascal@24433 | 23 |
al@19128 | 24 # Rules to configure and make the package. |
al@19128 | 25 compile_rules() |
al@19128 | 26 { |
Hans-G?nter@21688 | 27 ./configure \ |
Hans-G?nter@21688 | 28 --prefix=/usr \ |
al@19128 | 29 $CONFIGURE_ARGS && |
Hans-G?nter@21688 | 30 make && |
Hans-G?nter@21688 | 31 make install |
al@19128 | 32 |
al@19128 | 33 find $install -name pngquant.1 -exec gzip -9 \{\} \; |
al@19128 | 34 } |
al@19128 | 35 |
al@19128 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19128 | 37 genpkg_rules() |
al@19128 | 38 { |
Hans-G?nter@23439 | 39 cp -a $install/* $fs |
al@19128 | 40 } |