You are not logged in.
http://happypenguin.org/show?Trigger
thx in advance.
Gnome - The weakest link!
Linux, *not* GNU/Linux!
Offline
there is another cool one:
The impossible missions are the only ones which succeed.
Offline
I'm working on this. But atm I can't get the source to compile correctly, his compiler is very finky. Him and I are in contact as we work through this (although atm he is out of town). For the moment just use the binary...
Offline
After a little bit of work, I got it to compile. But the thing is... there's these two wee little issues with it all.
1) I really have no idea where to put the install because it needs it's data files but it's data files need to be in the current working directory when run... ... (I'm thinking just /opt/trigger/)
2) The data files aren't included with the source packages. Meaning you have to get the binary packages anyways. I'll make the MAKEPKG (a VERY hackish version -- instead of a tinyxml package, I kind of just put in there and patched a few files), but I have to forewarn you... it's all very ugly (and kind of pointless)
Note: I would not recommend this be the official PKGBUILD for this software. But it's there because it works
PKGBUILD
pkgname=trigger
pkgver=0.4.2
pkgrel=1
pkgdesc="Trigger game"
url="http://www.positro.net/trigger/"
depends=(sdl sdl_image openal boost)
makedepends=(jam)
source=(http://files.scapecaster.com/posit/$pkgname-$pkgver-src.tar.bz2
http://files.scapecaster.com/posit/$pkgname-$pkgver-linux.tar.bz2
http://easynews.dl.sourceforge.net/sourceforge/tinyxml/tinyxml_2_3_2.tar.gz
trigger_0_4_2_fix.patch trigger.gz)
md5sums=('1106df881dbe8645519198845161df83' 'c8d0b95fda1556feae974db7dab888a4'
'54434fbd9059527690fa2dffc0519198' 'c1fb3d87642ece7820f3a66992e5928c'
'60d3c479c0a8d8cdd93c4e57697d8b01')
build() {
cd $startdir/src/$pkgname-$pkgver-src
patch -Np1 -i ../trigger_0_4_2_fix.patch || return 1
cp -r ../tinyxml ./trigger/
# The following horribleness was copy and pasted from do-trigger.sh
# which compiles AND executes it. We just want to compile.
cd pengine
../build-linux.sh || return 1
cd ../psim
../build-linux.sh || return 1
cd ../trigger
../build-linux.sh || return 1
mkdir -p $startdir/pkg/usr/bin
cp $startdir/src/trigger $startdir/pkg/usr/bin
mkdir -p $startdir/pkg/opt/trigger
cp linux/trigger $startdir/pkg/opt/trigger/
cp -r $startdir/src/$pkgname-$pkgver-linux/data $startdir/pkg/opt/trigger/
}
trigger_0_4_2_fix.patch
diff -aurN trigger-0.4.2-src-orig/trigger/Jamfile trigger-0.4.2-src/trigger/Jamfile
--- trigger-0.4.2-src-orig/trigger/Jamfile 2004-09-06 15:54:30.000000000 -0700
+++ trigger-0.4.2-src/trigger/Jamfile 2004-09-09 02:38:41.000000000 -0700
@@ -24,8 +24,6 @@
LINKLIBS +=
-lSDL
-lSDL_image
- -lextgl
- -lode
;
if $(PENGINETARGET) = linux { LINKLIBS += -lGL -lopenal ; }
diff -aurN trigger-0.4.2-src-orig/trigger/game.cpp trigger-0.4.2-src/trigger/game.cpp
--- trigger-0.4.2-src-orig/trigger/game.cpp 2004-09-06 15:54:30.000000000 -0700
+++ trigger-0.4.2-src/trigger/game.cpp 2004-09-09 02:38:57.000000000 -0700
@@ -8,7 +8,7 @@
#include "main.h"
-#include <tinyxml/tinyxml.h>
+#include "tinyxml/tinyxml.h"
TriggerGame::TriggerGame(MainApp *parent)
diff -aurN trigger-0.4.2-src-orig/trigger/main.cpp trigger-0.4.2-src/trigger/main.cpp
--- trigger-0.4.2-src-orig/trigger/main.cpp 2004-09-06 15:54:30.000000000 -0700
+++ trigger-0.4.2-src/trigger/main.cpp 2004-09-09 02:39:09.000000000 -0700
@@ -8,7 +8,7 @@
#include "main.h"
-#include <tinyxml/tinyxml.h>
+#include "tinyxml/tinyxml.h"
#include <SDL/SDL_thread.h>
trigger.gz (a gzip of the following script -- very very hackish)
#!/bin/sh
CURRDIR=`pwd`
cd /opt/trigger/
/opt/trigger/trigger
cd $CURRDIR
(note, your md5sums probably won't match if you're off copying and pasting. I'd upload my set of files, but I don't have a server available at this moment. And I definetly don't want to be the one responsible for submitting this monstrosity into Arch's incoming / AIR)
Oh, and boost is somewhere in the world Just not in current/extra/unstable... (I'm not sure the one out there will work either, I didn't try using it. I built it myself -- and that was pretty wrong looking as well... )
Offline
dp wrote :
there is another cool one:
A PKGBUILD was posted for tuxkart:
http://bbs.archlinux.org/viewtopic.php?t=6570
Offline