diff options
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 |
commit | 3e8ed430a637c2fc80ccb918545d89b50643e4d8 (patch) | |
tree | c2df9268fe217da507274c45b1c4f948ee82a3e1 /libraries/libpgf/libpgf.SlackBuild | |
parent | 66153950208bc2dbfbfe4743048017ae988ce062 (diff) |
libraries/libpgf: Updated for version 7.21.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libpgf/libpgf.SlackBuild')
-rw-r--r-- | libraries/libpgf/libpgf.SlackBuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/libraries/libpgf/libpgf.SlackBuild b/libraries/libpgf/libpgf.SlackBuild index 34c3bc6da9765..c01db950f15ac 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 |