| 1 |
# -*-shell-script-*- |
| 2 |
|
| 3 |
[Meta] |
| 4 |
DisplayName: OpenCity the 3D city simulation game |
| 5 |
RootName: @opencity.info/opencity:$SOFTWAREVERSION |
| 6 |
ShortName: opencity |
| 7 |
Summary: OpenCity is a 3D city simulator |
| 8 |
Maintainer: Duong Khang NGUYEN <neoneurone @ gmail com> |
| 9 |
Packager: Duong Khang NGUYEN <neoneurone @ gmail com> |
| 10 |
URL: http://www.opencity.info |
| 11 |
License: GNU General Public License, Version 2 |
| 12 |
SoftwareVersion: 0.0.6 |
| 13 |
AutopackageTarget: 1.0 |
| 14 |
Compression: bzip2 |
| 15 |
CPUArchitectures: x86 |
| 16 |
PackageDesktop: share/applications/opencity.desktop |
| 17 |
|
| 18 |
# Only uncomment InterfaceVersion if your package exposes interfaces to other software, |
| 19 |
# for instance if it includes DSOs or python/perl modules. See the developer guide for more info, |
| 20 |
# or ask on autopackage-dev if you don't understand interface versioning in autopackage. |
| 21 |
# |
| 22 |
# InterfaceVersion: 0.0 |
| 23 |
|
| 24 |
[BuildPrepare] |
| 25 |
prepareBuild --src ../ |
| 26 |
|
| 27 |
[BuildUnprepare] |
| 28 |
unprepareBuild |
| 29 |
|
| 30 |
[Imports] |
| 31 |
echo '*' | import |
| 32 |
|
| 33 |
[Prepare] |
| 34 |
# Dependency checking |
| 35 |
require @libsdl.org/sdl 1.2 |
| 36 |
require @libsdl.org/sdl_image 1.2 |
| 37 |
require @libsdl.org/sdl_mixer 1.2 |
| 38 |
require @libsdl.org/sdl_net 1.2 |
| 39 |
require @opengl.org/opengl 1.2 |
| 40 |
require @opengl.org/glu 1.3 |
| 41 |
|
| 42 |
[Install] |
| 43 |
# Put your installation script here |
| 44 |
installExe bin/* |
| 45 |
installData share/opencity |
| 46 |
installIcon share/pixmaps/opencity.png |
| 47 |
installMenuItem Game share/applications/opencity.desktop |
| 48 |
installMan 6 man/man6/opencity.6 |
| 49 |
|
| 50 |
# Manually install the config files |
| 51 |
# installConfig etc/opencity <-- broken in autopackage up to 1.2.4 |
| 52 |
mkdirs "$PREFIX/etc/opencity/config" |
| 53 |
copyFiles etc/opencity/config/* "$PREFIX/etc/opencity/config" |
| 54 |
|
| 55 |
# Manually install other documentation files |
| 56 |
mkdirs "$PREFIX/share/doc/opencity" |
| 57 |
copyFiles share/doc/opencity/* "$PREFIX/share/doc/opencity" |
| 58 |
|
| 59 |
[Uninstall] |
| 60 |
# Usually just the following line is enough to uninstall everything |
| 61 |
uninstallFromLog |