sauerbraten: update package for new create_addon script

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-07-22 20:10:25 +02:00
parent dbbeb8f854
commit 267fbd717f
10 changed files with 32 additions and 95 deletions

View File

@ -0,0 +1,12 @@
#!/bin/sh
. config/options $1
mkdir -p $ADDON_BUILD/mkimage
cp -R $BUILD/$1/data $ADDON_BUILD/mkimage
cp -R $BUILD/$1/packages $ADDON_BUILD/mkimage
cp $BUILD/$1/*.cfg $ADDON_BUILD/mkimage
mkdir -p $ADDON_BUILD/mkimage/bin
cp $BUILD/$1/src/sauer_client $ADDON_BUILD/mkimage/bin
cp $BUILD/$1/src/sauer_server $ADDON_BUILD/mkimage/bin

View File

@ -2,19 +2,6 @@
. config/options $1
$SCRIPTS/build toolchain
$SCRIPTS/build zlib
$SCRIPTS/build libpng
$SCRIPTS/build $LIBJPEG
$SCRIPTS/build libX11
$SCRIPTS/build SDL
$SCRIPTS/build SDL_image
$SCRIPTS/build SDL_mixer
$SCRIPTS/build Mesa
ADDON_ID="addon.games.$1"
ADDON_VERSION="1"
cd $BUILD/$1/src
cd enet
@ -24,20 +11,3 @@ cd enet
cd ..
make
cd ..
mkdir -p .addons/$ADDON_ID
cp -R data .addons/$ADDON_ID
cp -R packages .addons/$ADDON_ID
cp *.cfg .addons/$ADDON_ID
cp -R $PKG_DIR/scripts/* .addons/$ADDON_ID
$SED "s|@ADDON_VERSION@|$OS_VERSION.$ADDON_VERSION|g" -i .addons/$ADDON_ID/addon.xml
$SED "s|@ADDON_ID@|$ADDON_ID|g" -i .addons/$ADDON_ID/addon.xml
mkdir -p .addons/$ADDON_ID/bin
cp src/sauer_client .addons/$ADDON_ID/bin
cp src/sauer_server .addons/$ADDON_ID/bin
cd .addons
zip -rq $ADDON_ID-$OS_VERSION.$ADDON_VERSION.zip $ADDON_ID

View File

Before

Width:  |  Height:  |  Size: 270 KiB

After

Width:  |  Height:  |  Size: 270 KiB

View File

@ -1,13 +0,0 @@
#!/bin/sh
. config/options $1
ADDON_ID="addon.games.$1"
ADDON_VERSION="1"
if [ "$2" = addons ]; then
mkdir -p $TARGET_ADDONS/$ADDON_ID
cp $BUILD/$1/.addons/$ADDON_ID-$OS_VERSION.$ADDON_VERSION.zip $TARGET_ADDONS/$ADDON_ID
cp $PKG_DIR/scripts/changelog.txt $TARGET_ADDONS/$ADDON_ID/changelog-$OS_VERSION.$ADDON_VERSION.txt
cp $PKG_DIR/scripts/icon.png $TARGET_ADDONS/$ADDON_ID/icon.png
fi

View File

@ -0,0 +1,14 @@
PKG_NAME="sauerbraten"
PKG_VERSION="2009_05_04"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="http://sauerbraten.org/"
PKG_URL="http://downloads.sourceforge.net/project/sauerbraten/sauerbraten/$PKG_VERSION/${PKG_NAME}_${PKG_VERSION}_trooper_edition_linux.tar.bz2"
PKG_DEPENDS="zlib libpng $LIBJPEG libX11 SDL SDL_image SDL_mixer Mesa"
PKG_BUILD_DEPENDS="toolchain zlib libpng $LIBJPEG libX11 SDL SDL_image SDL_mixer Mesa"
PKG_PRIORITY="optional"
PKG_SECTION="games"
PKG_SHORTDESC="(Game) Cube 2: Sauerbraten"
PKG_LONGDESC="Sauerbraten is a free multiplayer/singleplayer first person shooter, built as a major redesign of the Cube FPS. Much like the original Cube, the aim of this game is not necessarily to produce the most features and eyecandy possible, but rather to allow map/geometry editing to be done dynamically in-game, to create fun gameplay and an elegant engine."
PKG_IS_ADDON="yes"

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="@ADDON_ID@"
name="(Game) Cube 2: Sauerbraten"
version="@ADDON_VERSION@"
provider-name="OpenELEC.tv">
<requires>
<import addon="os.openelec.tv" version="0.90"/>
<import addon="xbmc.python" version="1.0"/>
</requires>
<extension point="xbmc.python.pluginsource"
library="default.py">
<provides>executable</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary>Cube 2: Sauerbraten</summary>
<description>
Sauerbraten is a free multiplayer/singleplayer first person shooter, built as a major redesign of the Cube FPS.
Much like the original Cube, the aim of this game is not necessarily to produce the most features and eyecandy possible, but rather to allow map/geometry editing to be done dynamically in-game, to create fun gameplay and an elegant engine. </description>
<platform>all</platform>
</extension>
</addon>

View File

@ -1,26 +0,0 @@
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
import sys
import xbmcaddon
import os
if ( __name__ == "__main__" ):
os.system("sh start.sh")

View File

@ -25,10 +25,12 @@ RESOLUTION_WIDTH=`echo $RESOLUTION | cut -f1 -d "x"`
RESOLUTION_HEIGHT=`echo $RESOLUTION | cut -f2 -d "x"`
SAUER_DATA=.
SAUER_OPTIONS="-q${HOME}/.sauerbraten -r"
SAUER_OPTIONS="-q${HOME}/.config/.sauerbraten -r"
# fix permissions lost after unpack
chmod +x ./bin/sauer_client
chmod +x ./bin/sauer_server
mkdir -p image
mount -o loop,ro sauerbraten.img image
ln -sf image/* .
./bin/sauer_client ${SAUER_OPTIONS} "$@"
umount image

View File

@ -1 +0,0 @@
http://downloads.sourceforge.net/project/sauerbraten/sauerbraten/2009_05_04/sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2