3
Makefile
3
Makefile
@@ -270,6 +270,9 @@ install: all
|
||||
@$(INSTALL_PROGRAM) -m +rx openra $(BIN_INSTALL_DIR)
|
||||
@$(INSTALL_PROGRAM) -m +rx openra-editor $(BIN_INSTALL_DIR)
|
||||
|
||||
@-rm openra
|
||||
@-rm openra-editor
|
||||
|
||||
uninstall:
|
||||
@-rm -r $(INSTALL_DIR)
|
||||
@-rm $(DESTDIR)$(bindir)/openra
|
||||
|
||||
2
launch-editor.sh
Executable file
2
launch-editor.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec mono OpenRA.Editor.exe "$@"
|
||||
2
launch-game.sh
Executable file
2
launch-game.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec mono OpenRA.Game.exe "$@"
|
||||
@@ -18,12 +18,17 @@ rm -rf $ROOTDIR
|
||||
# Game files
|
||||
mkdir -p $ROOTDIR/usr/bin/
|
||||
cp -T openra-bin $ROOTDIR/usr/bin/openra
|
||||
cp -T openra-editor-bin $ROOTDIR/usr/bin/openra-editor
|
||||
mkdir -p $ROOTDIR/usr/share/openra/
|
||||
cp -R $BUILTDIR/* "$ROOTDIR/usr/share/openra/" || exit 3
|
||||
|
||||
# Desura launch scripts
|
||||
cp ../../*.sh "$ROOTDIR/usr/share/openra/" || exit 3
|
||||
cp desura* "$ROOTDIR/usr/share/openra/" || exit 3
|
||||
|
||||
# Desktop Icons
|
||||
mkdir -p $ROOTDIR/usr/share/applications/
|
||||
cp openra.desktop "$ROOTDIR/usr/share/applications/"
|
||||
cp *.desktop "$ROOTDIR/usr/share/applications/"
|
||||
|
||||
mkdir -p $ROOTDIR/usr/share/icons/
|
||||
cp -r hicolor $ROOTDIR/usr/share/icons/
|
||||
|
||||
24
packaging/linux/desura_launch_Editor.sh
Executable file
24
packaging/linux/desura_launch_Editor.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd "`dirname "\`readlink -f "$0"\`"`"
|
||||
|
||||
if [ -e "desura_prelaunch.sh" ]; then
|
||||
. desura_prelaunch.sh
|
||||
fi
|
||||
|
||||
BIN_PATH="$HOME/.desura/games/openra/launch-editor.sh"
|
||||
ARGS=
|
||||
# TODO: This is crap.
|
||||
libSDL_Path="$HOME/.desura/tools/63/"
|
||||
libopenal_Path="$HOME/.desura/tools/73/"
|
||||
libCgGL_PATH="$HOME/.desura/tools/78/"
|
||||
libCg_PATH="$HOME/.desura/tools/79/"
|
||||
libfreetype_Path="$HOME/.desura/tools/92/"
|
||||
libGLU_Path="$HOME/.desura/tools/93/"
|
||||
libalut_Path="$HOME/.desura/tools/195/"
|
||||
|
||||
if [ -n $ARGS ]; then
|
||||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libSDL_Path}:${libopenal_Path}:${libCgGL_PATH}:${libCg_PATH}:${libfreetype_Path}:${libGLU_Path}:${libalut_Path} ${BIN_PATH} ${ARGS} $@
|
||||
else
|
||||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libSDL_Path}:${libopenal_Path}:${libCgGL_PATH}:${libCg_PATH}:${libfreetype_Path}:${libGLU_Path}:${libalut_Path} ${BIN_PATH} $@
|
||||
fi
|
||||
24
packaging/linux/desura_launch_Play.sh
Executable file
24
packaging/linux/desura_launch_Play.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd "`dirname "\`readlink -f "$0"\`"`"
|
||||
|
||||
if [ -e "desura_prelaunch.sh" ]; then
|
||||
. desura_prelaunch.sh
|
||||
fi
|
||||
|
||||
BIN_PATH="$HOME/.desura/games/openra/launch-game.sh"
|
||||
ARGS=
|
||||
# TODO: This is crap.
|
||||
libSDL_Path="$HOME/.desura/tools/63/"
|
||||
libopenal_Path="$HOME/.desura/tools/73/"
|
||||
libCgGL_PATH="$HOME/.desura/tools/78/"
|
||||
libCg_PATH="$HOME/.desura/tools/79/"
|
||||
libfreetype_Path="$HOME/.desura/tools/92/"
|
||||
libGLU_Path="$HOME/.desura/tools/93/"
|
||||
libalut_Path="$HOME/.desura/tools/195/"
|
||||
|
||||
if [ -n $ARGS ]; then
|
||||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libSDL_Path}:${libopenal_Path}:${libCgGL_PATH}:${libCg_PATH}:${libfreetype_Path}:${libGLU_Path}:${libalut_Path} ${BIN_PATH} ${ARGS} $@
|
||||
else
|
||||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libSDL_Path}:${libopenal_Path}:${libCgGL_PATH}:${libCg_PATH}:${libfreetype_Path}:${libGLU_Path}:${libalut_Path} ${BIN_PATH} $@
|
||||
fi
|
||||
BIN
packaging/linux/hicolor/32x32/apps/openra-editor.png
Normal file
BIN
packaging/linux/hicolor/32x32/apps/openra-editor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
packaging/linux/hicolor/48x48/apps/openra-editor.png
Normal file
BIN
packaging/linux/hicolor/48x48/apps/openra-editor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
3
packaging/linux/openra-editor-bin
Executable file
3
packaging/linux/openra-editor-bin
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cd /usr/share/openra
|
||||
mono OpenRA.Editor.exe "$@"
|
||||
10
packaging/linux/openra-editor.desktop
Normal file
10
packaging/linux/openra-editor.desktop
Normal file
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=OpenRA Map Editor
|
||||
GenericName=Tile based RTS game map editor
|
||||
Comment=Import legacy maps and create new ones from scratch
|
||||
Icon=openra-editor
|
||||
Exec=openra-editor
|
||||
Terminal=false
|
||||
Categories=Game;StrategyGame;
|
||||
@@ -10,6 +10,7 @@ URL: http://open-ra.org
|
||||
Group: Amusements/Games
|
||||
Packager: Matthew Bowra-Dean <matthew@ijw.co.nz>
|
||||
Requires: mono-core mono-devel SDL openal
|
||||
Suggests: Cg
|
||||
Prefix: /usr
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
Buildroot: /tmp/openra
|
||||
|
||||
Reference in New Issue
Block a user