libraries/libpgf: Updated for version 7.21.7.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2021-04-25 21:49:28 +07:00
parent 6615395020
commit 3e8ed430a6
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 19 additions and 14 deletions

View File

@ -4,3 +4,5 @@ and lossy compression.
It's considered as one of the best algorithms available these days
for compression of natural images
NOTE: dos2unix is a build-time dependency, not a runtime dependency

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright 2012-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Copyright 2012-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -21,8 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libpgf
SRCNAM=libPGF-codec-and-console-src
VERSION=${VERSION:-7.19.3}
VERSION=${VERSION:-7.21.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -58,9 +57,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf libPGF-codec-and-console-src
unzip $CWD/$SRCNAM.zip
cd libPGF-codec-and-console-src/PGF/Codec
rm -rf $PRGNAM
unzip $CWD/$PRGNAM.zip
cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -68,9 +67,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
fromdos < configure.ac > configure.ac.new
mv configure.ac.new configure.ac
sh ./autogen.sh
sed -i "s|7.15.32|$VERSION|g" configure.ac
touch README
dos2unix *.{am,ac,in,sh} */*.{am,in}
#sed -i -e "/HAS_DOXYGEN/{N;N;d}" Makefile.am
autoreconf -i
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@ -82,6 +83,8 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@ -89,7 +92,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="libpgf"
VERSION="7.19.3"
VERSION="7.21.7"
HOMEPAGE="http://www.libpgf.org"
DOWNLOAD="https://sourceforge.net/projects/libpgf/files/libpgf/7.19.3/libPGF-codec-and-console-src.zip"
MD5SUM="795e3c1816f107ca3d763a6f40424fd3"
DOWNLOAD="https://netactuate.dl.sourceforge.net/project/libpgf/libpgf/7.21.7/libpgf.zip"
MD5SUM="6e956fc3575a9047bafc2782ec17041f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="dos2unix"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"