aboutsummaryrefslogtreecommitdiff
path: root/misc/tal/tal.SlackBuild
diff options
context:
space:
mode:
authorPeter Wang <novalazy@gmail.com>2010-05-13 00:59:31 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:59:31 +0200
commit60e777549fb71112a613144d28eceb555a8e2481 (patch)
treec44d2f25e5b35fc9341e040b36c9bccdffabb10c /misc/tal/tal.SlackBuild
parentfdce8ff1dea79e75c352d16543b6fad7def7f93d (diff)
misc/tal: Added to 13.0 repository
Diffstat (limited to 'misc/tal/tal.SlackBuild')
-rw-r--r--misc/tal/tal.SlackBuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/misc/tal/tal.SlackBuild b/misc/tal/tal.SlackBuild
new file mode 100644
index 0000000000000..4e31ee2fc8a3f
--- /dev/null
+++ b/misc/tal/tal.SlackBuild
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# Slackware build script for tal
+
+# Written by Peter Wang <novalazy@gmail.com>
+
+PRGNAM=tal
+VERSION=${VERSION:-1.9}
+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"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ -type d -exec chmod 0755 {} \; -o \
+ -type f -exec chmod u+rw,go+r-w,a-s {} \;
+
+make CFLAGS="$SLKCFLAGS -ansi" tal
+
+mkdir -p $PKG/usr/bin
+cp -a tal $PKG/usr/bin
+strip --strip-unneeded $PKG/usr/bin/tal
+
+mkdir -p $PKG/usr/man/man1
+gzip -9c tal.1 > $PKG/usr/man/man1/tal.1.gz
+
+# INSTALL contains a vim tip so let's keep it.
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a INSTALL LICENSE $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.${PKGTYPE:-tgz}