diff options
Diffstat (limited to 'graphics/GraphicsMagick/GraphicsMagick.SlackBuild')
-rw-r--r-- | graphics/GraphicsMagick/GraphicsMagick.SlackBuild | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/graphics/GraphicsMagick/GraphicsMagick.SlackBuild b/graphics/GraphicsMagick/GraphicsMagick.SlackBuild index 48d9dd13f1..cac6bcf307 100644 --- a/graphics/GraphicsMagick/GraphicsMagick.SlackBuild +++ b/graphics/GraphicsMagick/GraphicsMagick.SlackBuild @@ -1,15 +1,21 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for GraphicsMagick # Originally written by Giovanne Castro <email removed>. -# Updated by B. Watson <yalhcru@gmail.com>, as the original author is +# Updated by B. Watson <urchlay@slackware.uk>, as the original author is # MIA. Original version had no license; I'm licensing the update under the # terms of the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. -# 20181201 bkw: -# - update for v1.3.31 (BUILD=1 again). +# 20231108 bkw: update for v1.3.42. +# 20230710 bkw: update for v1.3.40. +# 20230105 bkw: update for v1.3.39, using sourceforge link again. +# 20210910 bkw: update for v1.3.36. +# 20201019 bkw: update for v1.3.35. +# 20200111 bkw: update for v1.3.34, quit using sourceforge dl link. +# 20191130 bkw: update for v1.3.33. +# 20181201 bkw: update for v1.3.31 (BUILD=1 again). # 20181126 bkw: # - fix the perl module. at one point it really did work, but lately @@ -39,10 +45,13 @@ # - build Tcl bindings (TclMagick) # - document optional deps in README +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=GraphicsMagick -VERSION=${VERSION:-1.3.31} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.3.42} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -52,7 +61,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -94,7 +107,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ @@ -218,20 +231,21 @@ if [ "${TCL:-yes}" = "yes" ]; then WITHTCL=WITH cd - - rename .la_renamed .la $PKG/usr/lib$LIBDIRSUFFIX/*.la_renamed fi ### Done with tcl module -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 +gzip -9 $PKG/usr/man/man*/* + +rm -f $PKG/usr/lib*/*.la* $PKG/usr/lib*/Tcl*/*.la -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 +find $PKG/usr/lib* $PKG/usr/bin -type f -print0 | \ + xargs -0 file -m /etc/file/magic/elf | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true find $PKG -name perllocal.pod \ -o -name ".packlist" \ - -o -name "*.bs" \ - | xargs rm -f + -o -name "*.bs" | \ + xargs rm -rf || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ChangeLog *.txt $PKG/usr/doc/$PRGNAM-$VERSION @@ -245,4 +259,4 @@ sed \ $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |