You are not logged in.
Pages: 1
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
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
I'm a moderate, it's the mainstream that's extremist.
Offline
Would it conform more to layout rules to install to /usr/share/typhoon?
Offline
Yup, avoid /opt whenever possible.
1000
Offline
Agreed, updated.
I'm a moderate, it's the mainstream that's extremist.
Offline
Offline
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
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
I'm a moderate, it's the mainstream that's extremist.
Offline
Pages: 1