[testing] armagetronad slackbuild - the real tron cycles
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[testing] armagetronad slackbuild - the real tron cycles
with all the fuss going on with Tron Legacy, I felt the need of doing an old-school light cycle run, and gotta say it's da best! Tron Evolution, eat your earth out!
I've been playing arma for quite a while and have been too lazy to submit a SlackBuild (mostly because it involved a former maintainer), but I will say that there is a *significant* difference between the stable version (that you are building) and the latest development version. There hasn't been a full version upgrade for *years* yet the development version (at least the client, anyway) has grown very stable and much more full-featured than the stable (0.2.8) version. The dev version requires ftgl and protobuf (both available from slackbuilds.org) and requires bzr (bazaar) to grab the latest sources. Just for completeness' sake, here's the SlackBuild for the 0.3.x branch.
Code:
#!/bin/sh
## Written by T3slider (original name removed due to below)
## Feel free to use, modify, redistribute this script.
## If you make changes please modify the "Written by"
## so that I don't recieve emails about a script I
## did not write. Thanks.
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root!"
exit
fi
set -e
NAME=armagetronad
VERSION=`date +%Y%m%d`
CWD=$(pwd)
TMP=${TMP:-/tmp/t3s}
PKG=$TMP/package-$NAME
BUILD=${BUILD:-1}
TAG=${TAG:-_t3s}
ARCH=${ARCH:-x86_64}
OUTPUT=${OUTPUT:-/tmp}
rm -rf $PKG
mkdir -p $PKG
rm -rf $TMP/$NAME
cd $TMP || exit 1
bzr branch lp:armagetronad || exit 1
#bzr branch lp:~armagetronad-dev/armagetronad/armagetronad-old-glancing || exit 1
cd $NAME || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
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
sh ./bootstrap.sh
### we don't really want to build the uninstaller, but `make install` fails
### without it... For the time being, it will exist in /usr/share/doc/$NAME-$VERSION
### Also using --disable-games since it peppers installation
### paths with 'games' subdirectories and we're handling that manually.
### --enable-useradd is used, but no user is created (see README)
# Need to add lpthread dep for protobuf here, since configure won't find
# it
LIBS="-lpthread" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/games \
--sysconfdir=/etc \
--localstatedir=/var \
--datadir=/usr/share/games \
--docdir=/usr/doc \
--enable-glout \
--enable-master \
--enable-main \
--disable-music \
--disable-dirty \
--enable-sysinstall \
--disable-uninstall \
--enable-useradd \
--enable-etc \
--enable-desktop \
--enable-initscripts=/etc/rc.d \
--disable-games \
--enable-binreloc \
--enable-binreloc-threads \
|| exit 1
make -j7 || 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
) || true
mv $PKG/usr/doc/$NAME $PKG/usr/doc/$NAME-$VERSION
cp -a {AUTHORS,COPYING.txt,DCT.txt,NEWS,README*} $PKG/usr/doc/$NAME-$VERSION
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
rm -rf $PKG/etc/rc.d
#mv $PKG/usr/games/armagetronad-uninstall $PKG/usr/doc/$NAME-$VERSION/
#chmod -x $PKG/usr/doc/$NAME-$VERSION/armagetronad-uninstall
#echo "This uninstaller is included for build purposes, but Slackware's removepkg or pkgtool should be used instead." > $PKG/usr/doc/$NAME-$VERSION/armagetronad-uninstall.README
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n -p $OUTPUT/$NAME-$VERSION-$ARCH-$BUILD$TAG.tgz
The glancing behaviour for the smartcam is quite different between the stable and development versions, so those who want the old behaviour are forced to use the ~armagetronad-dev/armagetronad/armagetronad-old-glancing branch (and thus would have to comment the first bzr line and uncomment the second). I haven't compiled the old glance branch for quite a while, so I can't remember...but I think you may have to change the `cd $NAME` line since the directory will be named something else (armagetronad-old-glancing I would assume).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.