supertux-editor.apspec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # -*-shell-script-*-
  2. # Autopackage spec file
  3. #
  4. # Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
  5. # Mono-Specific tests and bootstrap script adapted from gnome-rdp autopackage,
  6. # Copyright (C) 2006 Balazs Varkonyi <vbali@linuxforge.hu>
  7. #
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. #
  22. [Meta]
  23. RootName: @supertux.berlios.de/supertux-editor:$SOFTWAREVERSION
  24. DisplayName: SuperTux Platform Game - Level Editor
  25. ShortName: supertux-editor
  26. Maintainer: SuperTux Development Team <supertux-devel@lists.berlios.de>
  27. Packager: Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
  28. Summary: SuperTux is a classic style 2D jump and run sidescroller game in a style similar to the original SuperMario games. This is the level editor.
  29. SoftwareVersion: 0.3.0
  30. PackageVersion: 1
  31. AutopackageTarget: 1.0
  32. [Description]
  33. SuperTux is a classic style 2D jump and run sidescroller game in a style similar to the original SuperMario games.
  34. Run and jump through multiple worlds, fighting off enemies by jumping
  35. on them or bumping them from below. Grabbing power-ups and other stuff
  36. on the way.
  37. This is the level editor.
  38. [BuildPrepare]
  39. jam
  40. mkdir -p $build_root/bin
  41. cp supertux-editor.exe $build_root/bin
  42. mkdir -p $build_root/share/supertux-editor
  43. cp gtkgl-sharp.dll libeditor.dll Lisp.dll LispReader.dll Resources.dll $build_root/share/supertux-editor
  44. cp gtkgl-sharp.dll.config libeditor.dll.config $build_root/share/supertux-editor
  45. mkdir -p $build_root/share/pixmaps
  46. cp supertux-editor.png supertux-editor.xpm $build_root/share/pixmaps
  47. mkdir -p $build_root/share/applications
  48. cp supertux-editor.desktop $build_root/share/applications
  49. mkdir -p $build_root/share/supertux-editor/data/brushes
  50. cp data/brushes/* $build_root/share/supertux-editor/data/brushes
  51. [BuildUnprepare]
  52. unprepareBuild
  53. [Imports]
  54. echo '*' | import
  55. [Prepare]
  56. outputTest "Mono .NET Runtime"
  57. REQUIRED_MONO_VERSION="1.1.13"
  58. MONO_VERSION=`mono -V | grep "version" | sed 's/.* \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/g'`
  59. compareVersions $REQUIRED_MONO_VERSION $MONO_VERSION
  60. if [ $? -gt 0 ]; then
  61. outputTestFail
  62. outputFail "at least Mono .NET Runtime $REQUIRED_MONO_VERSION required"
  63. false
  64. else
  65. outputTestPass
  66. fi
  67. outputTest "Gtk#"
  68. REQUIRED_GTKSHARP_VERSION="2.8.0"
  69. pkg-config --atleast-version=2.8.0 gtk-sharp-2.0
  70. if [ $? -gt 0 ]; then
  71. outputFail "at least Gtk# $REQUIRED_GTKSHARP_VERSION required"
  72. outputTestFail
  73. false
  74. else
  75. outputTestPass
  76. fi
  77. recommend "@supertux.berlios.de/supertux" 0.3
  78. require '@opengl.org/opengl' 1.2
  79. [Install]
  80. installExe bin/*
  81. installData share/supertux-editor
  82. installIcon share/pixmaps/supertux-editor.png
  83. installIcon share/pixmaps/supertux-editor.xpm
  84. installDesktop "Games" share/applications/supertux-editor.desktop
  85. createBootstrapScript "$PREFIX/bin/supertux-editor.exe" "$PREFIX/bin/supertux-editor" "export MONO_PATH=\"$PREFIX/share/supertux-editor\""
  86. removeLine "$PREFIX/bin/supertux-editor" "exec \"$PREFIX/bin/supertux-editor.exe\" \"\$@\""
  87. addLine "$PREFIX/bin/supertux-editor" "exec mono \"$PREFIX/bin/supertux-editor.exe\" \"\$@\""
  88. chmod a+x "$PREFIX/bin/supertux-editor"
  89. [Uninstall]
  90. uninstallFromLog