From e16b1d678679b5e2d1e37209c7626120b124e39f Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 13 May 2010 00:27:22 +0200 Subject: games/transfusion: Updated for version 1.05_beta2 --- games/transfusion/README | 8 ++++++++ games/transfusion/doinst.sh | 3 +++ games/transfusion/transfusion.SlackBuild | 15 ++++++++++++--- games/transfusion/transfusion.desktop | 6 ++++++ games/transfusion/transfusion.info | 2 ++ games/transfusion/transfusion.png | Bin 0 -> 454 bytes 6 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 games/transfusion/doinst.sh create mode 100644 games/transfusion/transfusion.desktop create mode 100644 games/transfusion/transfusion.png (limited to 'games/transfusion') diff --git a/games/transfusion/README b/games/transfusion/README index f7fe08eb6e..8a8c778d35 100644 --- a/games/transfusion/README +++ b/games/transfusion/README @@ -9,3 +9,11 @@ dutifully until He decided it was time to take everything from you for Himself... apparently, even gods make mistakes. Leaving you to rot in a grave and forgetting about you was a BIG one. + +SlackBuild note: + +The .info file says x86_64 is unsupported. However, if you install 32-bit +compatibility libraries (such as those from alienBOB's site), you stand a +good chance of getting the game to run (it works for the author of this +SlackBuild)... But *don't* bother the slackbuilds.org team if you can't +get it working: they don't support multilib. diff --git a/games/transfusion/doinst.sh b/games/transfusion/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/games/transfusion/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/games/transfusion/transfusion.SlackBuild b/games/transfusion/transfusion.SlackBuild index 9861b790d3..74d8daa1c7 100644 --- a/games/transfusion/transfusion.SlackBuild +++ b/games/transfusion/transfusion.SlackBuild @@ -5,13 +5,13 @@ # Written by B. Watson (yalhcru@gmail.com) # The game is distributed as a binary. This script just repackages -# the binary into a nice Slack package. +# the binary into a nice Slack package and adds KDE/XFCE desktop integration. PRGNAM=transfusion VERSION=${VERSION:-1.05_beta2} SRCVER=$(echo $VERSION | sed 's/_/-/g') ARCH=i486 # possibly a fib, we dunno how the binary was compiled -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -45,8 +45,17 @@ sed "s/@VERSION@/$VERSION/g" < $CWD/$PRGNAM.in > $PKG/usr/bin/$PRGNAM-glx chmod 755 $PKG/usr/bin/$PRGNAM-glx ( cd $PKG/usr/bin/ && ln -s $PRGNAM-glx $PRGNAM-dedicated ) + +# Icon extracted from windows transfusion.exe (sorry, it's 32x32) +mkdir -p $PKG/usr/share/pixmaps +cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/games/transfusion/transfusion.desktop b/games/transfusion/transfusion.desktop new file mode 100644 index 0000000000..c9c12a7125 --- /dev/null +++ b/games/transfusion/transfusion.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Transfusion +Exec=transfusion-glx +Type=Application +Icon=transfusion +Categories=Game;ActionGame; diff --git a/games/transfusion/transfusion.info b/games/transfusion/transfusion.info index 3cdd32989e..b720eab6ec 100644 --- a/games/transfusion/transfusion.info +++ b/games/transfusion/transfusion.info @@ -2,7 +2,9 @@ PRGNAM="transfusion" VERSION="1.05_beta2" HOMEPAGE="http://www.transfusion-game.com/" DOWNLOAD="http://offload.funwithheads.com/transfusion/files/beta/transfusion-1.05-beta2.zip" +DOWNLOAD_x86_64="UNSUPPORTED" MD5SUM="c19cc9a8160d47b1ea23305a38f1d091" +MD5SUM_x86_64="" MAINTAINER="B. Watson" EMAIL="yalhcru@gmail.com" APPROVED="dsomero" diff --git a/games/transfusion/transfusion.png b/games/transfusion/transfusion.png new file mode 100644 index 0000000000..feb095de55 Binary files /dev/null and b/games/transfusion/transfusion.png differ -- cgit v1.2.3-80-g2a13