You are not logged in.

#1 2007-11-15 07:02:26

Klepto
Member
From: Scotland
Registered: 2007-11-12
Posts: 41

Typhoon 2001

My 1st package, it's the Linux version of a remake of Tempest 2000. Before I upload it to AUR can someone have a look at it? I suspect the author although obviously skilled is not particularly Linux savvy. It's distributed as binary-only, has to run from it's home directory and doesn't know about /home. In order to install it globally I've created an ugly hack, please let me know if there's a better way. It all seems to work fine, it's just not done how it should be smile

The game files are installed in /opt, and a shell script in /usr/bin. When the shell script is run it checks for ~/.typhoon_2001 and if it's not there it creates it, copies over modifiable files (config, highscores etc) and creates symlinks to the rest. To run the game it cds to ~/.typhoon_2001 and runs there. /opt seems like the wrong place for the game files, but if I use /usr/lib/typhoon_2001 makepkg strips the binary to death. Running the app from /home is very bad too, but not sure how to do it better. I did consider making a system wide highscore table by using the sticky bit on the highscore files in /opt, but that's probably an obscure security risk.

You can get it here, any comments would be greatly appreciated. Next time I'll choose something easier wink


I'm a moderate, it's the mainstream that's extremist.

Offline

#2 2007-11-15 07:42:23

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: Typhoon 2001

Would it conform more to layout rules to install to /usr/share/typhoon?

Offline

#3 2007-11-15 08:02:29

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Typhoon 2001

Yup, avoid /opt whenever possible.


1000

Offline

#4 2007-11-15 08:04:38

Klepto
Member
From: Scotland
Registered: 2007-11-12
Posts: 41

Re: Typhoon 2001

Agreed, updated.


I'm a moderate, it's the mainstream that's extremist.

Offline

#5 2007-11-15 15:48:59

Klepto
Member
From: Scotland
Registered: 2007-11-12
Posts: 41

Re: Typhoon 2001


I'm a moderate, it's the mainstream that's extremist.

Offline

#6 2007-11-15 17:49:19

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: Typhoon 2001

Note that the user runs the script (/usr/bin/typhoon_2001), he doesn't source it, so ...

pushd ~/.typhoon_2001 > /dev/null &&
~/.typhoon_2001/typhoon
popd > /dev/null

... there is no point in returning to the previous directory, a cd and ./ should suffice.

Offline

#7 2007-11-15 18:11:39

Klepto
Member
From: Scotland
Registered: 2007-11-12
Posts: 41

Re: Typhoon 2001

Gilneas wrote:

there is no point in returning to the previous directory, a cd and ./ should suffice.

True, updated here but not uploaded yet at it doesn't do any harm smile


I'm a moderate, it's the mainstream that's extremist.

Offline

Board footer

Powered by FluxBB