megaglest: 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:09 +02:00
parent 226f0ec235
commit dbbeb8f854
9 changed files with 31 additions and 89 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
mkdir -p $ADDON_BUILD/mkimage/bin
cp -R $BUILD/$1-source*/glest.bin $ADDON_BUILD/mkimage/bin
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID
cp $BUILD/$1-source*/glest.ini $ADDON_BUILD/$PKG_ADDON_ID

View File

@ -1,25 +0,0 @@
#!/bin/sh
. config/options $1
ADDON_ID="addon.games.$1"
ADDON_VERSION="1"
$SCRIPTS/build megaglest-source
$SCRIPTS/build megaglest-data
mkdir -p $BUILD/$1
cd $BUILD/$1
mkdir -p .addons/$ADDON_ID
cp $ROOT/$BUILD/$1-source*/glest.ini .addons/$ADDON_ID
cp -R $ROOT/$BUILD/$1-data*/* .addons/$ADDON_ID
mkdir -p .addons/$ADDON_ID/bin
cp -R $ROOT/$BUILD/$1-source*/glest.bin .addons/$ADDON_ID/bin
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
cd .addons
zip -rq $ADDON_ID-$OS_VERSION.$ADDON_VERSION.zip $ADDON_ID

View File

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 180 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="megaglest"
PKG_VERSION=""
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="http://www.glest.org"
PKG_URL=""
PKG_DEPENDS="megaglest-source megaglest-data"
PKG_BUILD_DEPENDS="toolchain megaglest-source megaglest-data"
PKG_PRIORITY="optional"
PKG_SECTION="games"
PKG_SHORTDESC="(Game) MegaGlest: a free 3D real-time strategy game"
PKG_LONGDESC="Glest is a free 3D real-time strategy game, where you control the armies of two different factions: Tech, which is mainly composed of warriors and mechanical devices, and Magic, that prefers mages and summoned creatures in the battlefield."
PKG_IS_ADDON="yes"

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="@ADDON_ID@"
name="(Game) MegaGlest"
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>
MegaGlest is a free 3D real-time strategy game
</summary>
<description>
Glest is a free 3D real-time strategy game, where you control the armies of two different factions: Tech, which is mainly composed of warriors and mechanical devices, and Magic, that prefers mages and summoned creatures in the battlefield.
</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

@ -32,7 +32,10 @@ sed -e "s|^ScreenHeight=.*|ScreenHeight=$RESOLUTION_HEIGHT|g" \
-e "s|^DebugNetwork=.*|DebugNetwork=false|g" \ -e "s|^DebugNetwork=.*|DebugNetwork=false|g" \
-i glest.ini -i glest.ini
# fix permissions lost after unpack mkdir -p image
chmod +x ./bin/glest.bin mount -o loop,ro megaglest.img image
ln -sf image/* .
./bin/glest.bin ./bin/glest.bin
umount image