summaryrefslogtreecommitdiff
path: root/graphics/potrace/potrace.SlackBuild
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-05-11 19:44:53 +0200
committerEric Hameleers <alien@slackbuilds.org>2010-05-11 19:44:53 +0200
commita05cc602dce50b54e3d7a3ea7ae7594d45bc269d (patch)
treeaed0786384c3b6c15ad9780ed74f80dc3e20b195 /graphics/potrace/potrace.SlackBuild
parentc40c15b87f1ce1a05c65e292e5fc5f069646388a (diff)
downloadslackbuilds-a05cc602dce50b54e3d7a3ea7ae7594d45bc269d.tar.gz
graphics/potrace: Updated for version 1.8
Diffstat (limited to 'graphics/potrace/potrace.SlackBuild')
-rw-r--r--graphics/potrace/potrace.SlackBuild32
1 files changed, 17 insertions, 15 deletions
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 \