summaryrefslogtreecommitdiff
path: root/development/ftjam/ftjam.SlackBuild
diff options
context:
space:
mode:
authorFerenc Deak <ferenc.deak@gmail.com>2010-05-11 14:05:51 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 14:05:51 +0200
commit61e7763ae2a02320215395990ab0df57a9010308 (patch)
treef72a7fb89ea7a9616189c10e6b66936457c68668 /development/ftjam/ftjam.SlackBuild
parentbbff165e6c7cca38ad309c34f9e92ecc1bef6dd8 (diff)
downloadslackbuilds-61e7763ae2a02320215395990ab0df57a9010308.tar.gz
development/ftjam: Initial import
Diffstat (limited to 'development/ftjam/ftjam.SlackBuild')
-rw-r--r--development/ftjam/ftjam.SlackBuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/development/ftjam/ftjam.SlackBuild b/development/ftjam/ftjam.SlackBuild
new file mode 100644
index 0000000000..dcdcc5a045
--- /dev/null
+++ b/development/ftjam/ftjam.SlackBuild
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Slackware build script for ftjam
+
+# Written by Ferenc Deak <ferenc.deak@gmail.com>
+# Modified (slightly) by the SlackBuilds.org project
+
+set -e
+
+PRGNAM=ftjam
+VERSION=2.5.2
+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
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xjf $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
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+( 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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README CHANGES RELNOTES Jambase *.html \
+ $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