summaryrefslogtreecommitdiff
path: root/graphics/gimp-lqr-plugin/gimp-lqr-plugin.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 23:29:42 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:29:42 +0200
commit9722ee23ac43d302ee12a410b8ebc68573396445 (patch)
treed0a1cee813243d050bc7e3436401bf0261199f35 /graphics/gimp-lqr-plugin/gimp-lqr-plugin.SlackBuild
parent0c3ded9b40c5b7b71aa10f0d6191164bacb7f16c (diff)
downloadslackbuilds-9722ee23ac43d302ee12a410b8ebc68573396445.tar.gz
graphics/gimp-lqr-plugin: Added to 12.2 repository
Diffstat (limited to 'graphics/gimp-lqr-plugin/gimp-lqr-plugin.SlackBuild')
-rw-r--r--graphics/gimp-lqr-plugin/gimp-lqr-plugin.SlackBuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/graphics/gimp-lqr-plugin/gimp-lqr-plugin.SlackBuild b/graphics/gimp-lqr-plugin/gimp-lqr-plugin.SlackBuild
new file mode 100644
index 0000000000..b7f8afcfe2
--- /dev/null
+++ b/graphics/gimp-lqr-plugin/gimp-lqr-plugin.SlackBuild
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Slackware build script for gimp-lqr-plugin
+# Written by Erik Hanson erik@slackbuilds.org
+
+PRGNAM=gimp-lqr-plugin
+VERSION=0.6.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz