mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
sauerbraten: update package for new create_addon script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
dbbeb8f854
commit
267fbd717f
12
packages/addons/games/sauerbraten/addon
Executable file
12
packages/addons/games/sauerbraten/addon
Executable 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
|
@ -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
|
||||
|
Before Width: | Height: | Size: 270 KiB After Width: | Height: | Size: 270 KiB |
@ -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
|
14
packages/addons/games/sauerbraten/meta
Normal file
14
packages/addons/games/sauerbraten/meta
Normal 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"
|
@ -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>
|
@ -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")
|
@ -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
|
||||
|
@ -1 +0,0 @@
|
||||
http://downloads.sourceforge.net/project/sauerbraten/sauerbraten/2009_05_04/sauerbraten_2009_05_04_trooper_edition_linux.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user