summaryrefslogtreecommitdiffstats
path: root/libraries/libpgf
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-25 21:49:28 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-26 11:50:54 +0700
commit3e8ed430a637c2fc80ccb918545d89b50643e4d8 (patch)
treec2df9268fe217da507274c45b1c4f948ee82a3e1 /libraries/libpgf
parent66153950208bc2dbfbfe4743048017ae988ce062 (diff)
downloadslackbuilds-3e8ed430a637c2fc80ccb918545d89b50643e4d8.tar.gz
slackbuilds-3e8ed430a637c2fc80ccb918545d89b50643e4d8.tar.xz
libraries/libpgf: Updated for version 7.21.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libpgf')
-rw-r--r--libraries/libpgf/README2
-rw-r--r--libraries/libpgf/libpgf.SlackBuild23
-rw-r--r--libraries/libpgf/libpgf.info8
3 files changed, 19 insertions, 14 deletions
diff --git a/libraries/libpgf/README b/libraries/libpgf/README
index c25e2739b7..f2ac974aae 100644
--- a/libraries/libpgf/README
+++ b/libraries/libpgf/README
@@ -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
diff --git a/libraries/libpgf/libpgf.SlackBuild b/libraries/libpgf/libpgf.SlackBuild
index 34c3bc6da9..c01db950f1 100644
--- a/libraries/libpgf/libpgf.SlackBuild
+++ b/libraries/libpgf/libpgf.SlackBuild
@@ -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
diff --git a/libraries/libpgf/libpgf.info b/libraries/libpgf/libpgf.info
index 6903a1f071..d56565dd82 100644
--- a/libraries/libpgf/libpgf.info
+++ b/libraries/libpgf/libpgf.info
@@ -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"