graphics/pngquant: Updated for version 2.9.0 + new maintainer.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
DhabyX 2017-03-14 01:36:38 +00:00 committed by Willy Sudiarto Raharjo
parent dcca120cd4
commit 959b408d39
3 changed files with 21 additions and 10 deletions

View File

@ -3,3 +3,6 @@ images to paletted (8-bit) PNGs. The conversion reduces file sizes
significantly (often as much as 70%) and preserves full alpha
transparency. Generated images are compatible with all modern web
browsers, and have better fallback in IE6 than 24-bit PNGs.
Optional features:
OPENMP=yes|no (default: no) Enables parallelized batch jobs.

View File

@ -3,6 +3,7 @@
# Slackware build script for pngquant
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
# 2017 - Dhaby Xiloj - <slack.dhabyx@gmail.com>
# Copyright 2013-2015 Kyle Guinn <elyk03@gmail.com>, USA
# All rights reserved.
@ -25,7 +26,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pngquant
VERSION=${VERSION:-2.8.2}
VERSION=${VERSION:-2.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -64,22 +65,29 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
if [ "${OPENMP:-no}" != "no" ]; then
openmp="--with-openmp"
fi
./configure \
--prefix=/usr \
$openmp \
CFLAGS="$SLKCFLAGS"
make -C lib shared
sed -i -e 's#share/man#man#' Makefile
make
install -D -m0755 -s pngquant $PKG/usr/bin/pngquant
make -C lib shared
make PREFIX=$PKG/usr install
# manual installation of libraries:
install -D -m0755 lib/libimagequant.so.0 $PKG/usr/lib${LIBDIRSUFFIX}/libimagequant.so.0
install -D -m0644 lib/libimagequant.a $PKG/usr/lib${LIBDIRSUFFIX}/libimagequant.a
install -D -m0644 lib/libimagequant.h $PKG/usr/include/libimagequant.h
install -D -m0644 pngquant.1 $PKG/usr/man/man1/pngquant.1
find $PKG/usr/man -type f -exec gzip -9 {} +

View File

@ -1,10 +1,10 @@
PRGNAM="pngquant"
VERSION="2.8.2"
VERSION="2.9.0"
HOMEPAGE="https://pngquant.org/"
DOWNLOAD="https://pngquant.org/pngquant-2.8.2-src.tar.gz"
MD5SUM="82234761ee2ce9895da983d604c9621a"
DOWNLOAD="https://pngquant.org/pngquant-2.9.0-src.tar.gz"
MD5SUM="7071fb2e03cb58d371ac7b0f74ad72a9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Ryan P.C. McQuen"
EMAIL="ryanpcmcquen@member.fsf.org"
MAINTAINER="DhabyX"
EMAIL="slack.dhabyx@gmail.com"