summaryrefslogtreecommitdiff
path: root/games/wormux/wormux.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/wormux/wormux.SlackBuild')
-rw-r--r--games/wormux/wormux.SlackBuild48
1 files changed, 23 insertions, 25 deletions
diff --git a/games/wormux/wormux.SlackBuild b/games/wormux/wormux.SlackBuild
index 926c2f1c3f..51f92f208b 100644
--- a/games/wormux/wormux.SlackBuild
+++ b/games/wormux/wormux.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for wormux
-# Copyright 2007 Adnan Hodzic aka AbsintheSyringe (AbsintheSyringe@gmail.com)
+# Copyright 2007 Adnan Hodzic aka AbsintheSyringe <AbsintheSyringe@gmail.com>
+# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,10 +26,11 @@
# Modified by the SlackBuilds.org project
PRGNAM=wormux
-VERSION=0.7.9
+VERSION=0.8.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -38,14 +40,18 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
-rm -rf $PKG
+set -e
+
+rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
@@ -58,32 +64,24 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--program-prefix="" \
--program-suffix="" \
- || exit 1
-
-make || exit 1
-make install DESTDIR=$PKG || exit 1
-
-( 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
-)
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
-install -D -m 0644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
-mv $PKG/usr/share/$PRGNAM/$PRGNAM.desktop $PKG/usr/share/applications/
-sed -i 's#Icon=wormux_128x128.png#Icon=/usr/share/pixmaps/wormux.png#' \
- $PKG/usr/share/applications/$PRGNAM.desktop || exit 1
+make
+make install DESTDIR=$PKG
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a examples/ ChangeLog INSTALL NEWS README TODO using_wormux.html \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
- find . -type f -exec chmod 0644 {} \;
find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+ 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 ChangeLog INSTALL 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
cat $CWD/doinst.sh > $PKG/install/doinst.sh