# -*-shell-script-*- # Original by Dylan Smith # # Konstantinos Sykas # 2009-09-30: Updated to include DTDs and new documentation, and to perform a clean uninstall # 2009-10-13: a. Support for x86_64 architecture packages # b. Perform a clean build before producing the package # 2011-03-22: Removed the need of the TOPLEVEL environment variable # for oolite-update and oolite-wrapper scripts # [Meta] RootName: @oolite-linux.berlios.de/oolite:$SOFTWAREVERSION DisplayName: Oolite for Linux ShortName: oolite Maintainer: Dylan Smith Packager: Konstantinos Sykas Summary: Oolite is an Elite tribute game that is easily expandable. URL: http://oolite.aegidian.org License: GNU GPL version 2 SoftwareVersion: 1.89 AutopackageTarget: 1.4 # Use 'CPUArchitectures: x86_64' if 'uname -m' gives x86_64 CPUArchitectures: x86 PackageFileName: $SHORTNAME-$SOFTWAREVERSION.$CPUARCHITECTURES.package # Only uncomment InterfaceVersion if your package exposes interfaces to other software, # for instance if it includes DSOs or python/perl modules. See the developer guide for more info, # or ask on autopackage-dev if you don't understand interface versioning in autopackage. # # InterfaceVersion: 0.0 [Description] Oolite for Linux is an independent recreation and interpretation of the classic space game Elite. Choose your side of the law. Choose your profession. Above all, reach the Elite rating. # we do the executable separately as this allows Autopackage to check # the libc version. Note: autopackage doesn't seem to compress, that's # why we are using tar files :/ [BuildPrepare] make -f Makefile clean make -f Makefile deps-release-snapshot cp installers/FreeDesktop/oolite.desktop $build_root cp installers/FreeDesktop/oolite-icon.png $build_root cp Doc/AdviceForNewCommanders.pdf $build_root cp Doc/OoliteReadMe.pdf $build_root cp Doc/OoliteRS.pdf $build_root cp Doc/CHANGELOG.TXT $build_root tar zcf $build_root/oolite.app.tar oolite.app --exclude .svn cd deps/Cross-platform-deps/ tar zcf $build_root/dtds.tar DTDs --exclude .svn cd ../Linux-deps/ cp oolite.src $build_root cp oolite-update.src $build_root cp README.TXT $build_root cd x86 tar zcf $build_root/oolite.deps.tar lib --exclude .svn echo $SOFTWAREVERSION >$build_root/release.txt #[BuildUnprepare] #unprepareBuild [Imports] import < README-PREAMBLE.TXT echo "more docs can be found at $PREFIX/lib/Oolite/doc" >> README-PREAMBLE.TXT echo "Press q to exit this document and launch the game" >> README-PREAMBLE.TXT echo >> README-PREAMBLE.TXT copyFiles README.TXT README-PREAMBLE.TXT $PREFIX/lib/Oolite/doc copyFiles AdviceForNewCommanders.pdf OoliteReadMe.pdf OoliteRS.pdf CHANGELOG.TXT $PREFIX/lib/Oolite/doc copyFile release.txt $PREFIX/lib/Oolite/release.txt chmod a+rw $PREFIX/lib/Oolite/release.txt echo "#!/bin/sh" > oolite-wrapper echo "OOLITE_ROOT=$PREFIX/lib/Oolite" >> oolite-wrapper cat oolite.src >> oolite-wrapper copyFile oolite-wrapper $PREFIX/lib/Oolite/oolite.app/oolite-wrapper chmod +x $PREFIX/lib/Oolite/oolite.app/oolite-wrapper echo "#!/bin/sh" > oolite-update echo "OOLITE_ROOT=$PREFIX/lib/Oolite" >> oolite-update cat oolite-update.src >> oolite-update copyFile oolite-update $PREFIX/lib/Oolite/oolite.app/oolite-update chmod +x $PREFIX/lib/Oolite/oolite.app/oolite-update echo "#!/bin/sh" > oolite echo "$PREFIX/lib/Oolite/oolite.app/oolite-wrapper \$@" >> oolite echo "exit" >> oolite echo "#!/bin/sh" > oolite-update echo "$PREFIX/lib/Oolite/oolite.app/oolite-update \$@" >> oolite-update echo "exit" >> oolite-update installExe oolite oolite-update installIcon oolite-icon.png installDesktop "Game" oolite.desktop outputStatus "Complete" [Uninstall] # Usually just the following line is enough to uninstall everything uninstallFromLog