From a05cc602dce50b54e3d7a3ea7ae7594d45bc269d Mon Sep 17 00:00:00 2001 From: Kyle Guinn Date: Tue, 11 May 2010 19:44:53 +0200 Subject: graphics/potrace: Updated for version 1.8 --- graphics/potrace/potrace.SlackBuild | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'graphics/potrace/potrace.SlackBuild') diff --git a/graphics/potrace/potrace.SlackBuild b/graphics/potrace/potrace.SlackBuild index aebb2899d6..7455caf327 100644 --- a/graphics/potrace/potrace.SlackBuild +++ b/graphics/potrace/potrace.SlackBuild @@ -3,14 +3,14 @@ # Slackware build script for potrace # Written by Kyle Guinn -# Modified by the SlackBuilds.org project +set -e PRGNAM=potrace -VERSION=1.7 +VERSION=1.8 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -23,30 +23,32 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 - +tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . +# Apply the xfig patch +zcat $CWD/potrace-1.8-xfig.patch.gz | patch -p0 + +# For metric units and papersizes, use the following flags to configure: +# --enable-metric Use metric units (centimeters) as default +# --enable-a4 Use A4 as the default papersize + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --localstatedir=/var \ - || exit 1 + --localstatedir=/var +make +make install-strip DESTDIR=$PKG -make || exit 1 -make install-strip DESTDIR=$PKG || exit 1 - -if [ -d $PKG/usr/man ]; then ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; - for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ -- cgit v1.2.3-80-g2a13