diff options
author | Peter Wang <novalazy@gmail.com> | 2010-05-13 00:59:31 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:59:31 +0200 |
commit | 60e777549fb71112a613144d28eceb555a8e2481 (patch) | |
tree | c44d2f25e5b35fc9341e040b36c9bccdffabb10c /misc/tal/tal.SlackBuild | |
parent | fdce8ff1dea79e75c352d16543b6fad7def7f93d (diff) | |
download | slackbuilds-60e777549fb71112a613144d28eceb555a8e2481.tar.gz |
misc/tal: Added to 13.0 repository
Diffstat (limited to 'misc/tal/tal.SlackBuild')
-rw-r--r-- | misc/tal/tal.SlackBuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/misc/tal/tal.SlackBuild b/misc/tal/tal.SlackBuild new file mode 100644 index 0000000000..4e31ee2fc8 --- /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} |