diff options
author | Grigorios Bouzakis <grbzks@gmail.com> | 2010-05-11 20:01:32 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 20:01:32 +0200 |
commit | 8e7effbb1415dc68b80b89cc913be13a7c780c6b (patch) | |
tree | 24d0be24beb631e7bce9b1f7e77168bb3fe1b930 /network/fdm/fdm.SlackBuild | |
parent | ef122d70daa1afcf6922316369514afd3e7d094a (diff) | |
download | slackbuilds-8e7effbb1415dc68b80b89cc913be13a7c780c6b.tar.gz |
network/fdm: Added to 12.0 repository
Diffstat (limited to 'network/fdm/fdm.SlackBuild')
-rw-r--r-- | network/fdm/fdm.SlackBuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/network/fdm/fdm.SlackBuild b/network/fdm/fdm.SlackBuild new file mode 100644 index 0000000000..6d0490ac0b --- /dev/null +++ b/network/fdm/fdm.SlackBuild @@ -0,0 +1,54 @@ +#!/bin/sh + +# Slackware build script for fdm + +# Written by Grigorios Bouzakis (grbzks@gmail.com) +set -e + +PRGNAM=fdm +VERSION=1.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 -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +make +make PREFIX=$PKG/usr install + +( 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 CHANGES MANUAL README TODO examples $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 |