mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
wesnoth: update package for new create_addon script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
e41a2ab228
commit
226f0ec235
14
packages/addons/games/wesnoth/addon
Executable file
14
packages/addons/games/wesnoth/addon
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $ADDON_BUILD/mkimage
|
||||
cp -R $PKG_BUILD/data $ADDON_BUILD/mkimage
|
||||
cp -R $PKG_BUILD/fonts $ADDON_BUILD/mkimage
|
||||
cp -R $PKG_BUILD/images $ADDON_BUILD/mkimage
|
||||
cp -R $PKG_BUILD/sounds $ADDON_BUILD/mkimage
|
||||
cp -R $PKG_BUILD/translations $ADDON_BUILD/mkimage
|
||||
cp $PKG_BUILD/l10n-track $ADDON_BUILD/mkimage
|
||||
|
||||
mkdir -p $ADDON_BUILD/mkimage/bin
|
||||
cp $PKG_BUILD/build/wesnoth $ADDON_BUILD/mkimage/bin
|
@ -2,22 +2,6 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build boost
|
||||
$SCRIPTS/build lua
|
||||
$SCRIPTS/build zlib
|
||||
$SCRIPTS/build libX11
|
||||
$SCRIPTS/build pango
|
||||
$SCRIPTS/build fontconfig
|
||||
$SCRIPTS/build SDL
|
||||
$SCRIPTS/build SDL_image
|
||||
$SCRIPTS/build SDL_mixer
|
||||
$SCRIPTS/build SDL_net
|
||||
$SCRIPTS/build SDL_ttf
|
||||
|
||||
ADDON_ID="addon.games.$1"
|
||||
ADDON_VERSION="1"
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
rm -rf build
|
||||
@ -29,18 +13,3 @@ cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
||||
..
|
||||
|
||||
make
|
||||
|
||||
cd ..
|
||||
|
||||
mkdir -p .addons/$ADDON_ID
|
||||
cp -R data fonts images sounds translations .addons/$ADDON_ID
|
||||
cp l10n-track .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 build/wesnoth .addons/$ADDON_ID/bin
|
||||
|
||||
cd .addons
|
||||
zip -rq $ADDON_ID-$OS_VERSION.$ADDON_VERSION.zip $ADDON_ID
|
||||
|
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 177 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 $PKG_BUILD/.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
|
16
packages/addons/games/wesnoth/meta
Normal file
16
packages/addons/games/wesnoth/meta
Normal file
@ -0,0 +1,16 @@
|
||||
PKG_NAME="wesnoth"
|
||||
PKG_VERSION="1.8.3"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://www.glest.org"
|
||||
PKG_URL="http://sourceforge.net/projects/wesnoth/files/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS="boost zlib libX11 pango fontconfig SDL SDL_image SDL_mixer SDL_net SDL_ttf"
|
||||
PKG_BUILD_DEPENDS="toolchain boost lua zlib libX11 pango fontconfig SDL SDL_image SDL_mixer SDL_net SDL_ttf"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="games"
|
||||
PKG_SHORTDESC="(Game) The Battle for Wesnoth"
|
||||
PKG_LONGDESC="The Battle for Wesnoth is a turn-based strategy game with a fantasy theme. Build up a great army, gradually turning raw recruits into hardened veterans. In later games, recall your toughest warriors and form a deadly host against whom none can stand! Choose units from a large pool of specialists, and hand-pick a force with the right strengths to fight well on different terrains against all manner of opposition. Wesnoth has many different sagas waiting to be played out. Fight to regain the throne of Wesnoth, of which you are the legitimate heir... step into the boots of a young officer sent to guard a not-so-sleepy frontier outpost... vanquish a horde of undead warriors unleashed by a foul necromancer, who also happens tohave taken your brother hostage... guide a band of elvish survivors in an epic quest to find a new home. 200+ unit types. 16 races. 6 major factions. Hundreds of years of history. The world of Wesnoth is absolutely huge and limited only by your creativity - make your own custom units, compose your own maps, and write your own scenarios or even full-blown campaigns. You can also challenge up to 8 friends - or strangers - and fight in epic multi-player fantasy battles."
|
||||
PKG_IS_ADDON="yes"
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="@ADDON_ID@"
|
||||
name="(Game) The Battle for Wesnoth"
|
||||
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>The Battle for Wesnoth</summary>
|
||||
<description>
|
||||
The Battle for Wesnoth is a turn-based strategy game with a fantasy theme.
|
||||
Build up a great army, gradually turning raw recruits into hardened veterans. In later games, recall your toughest warriors and form a deadly host against whom none can stand! Choose units from a large pool of specialists, and hand-pick a force with the right strengths to fight well on different terrains against all manner of opposition. Wesnoth has many different sagas waiting to be played out. Fight to regain the throne of Wesnoth, of which you are the legitimate heir... step into the boots of a young officer sent to guard a not-so-sleepy frontier outpost... vanquish a horde of undead warriors unleashed by a foul necromancer, who also happens tohave taken your brother hostage... guide a band of elvish survivors in an epic quest to find a new home.
|
||||
200+ unit types. 16 races. 6 major factions. Hundreds of years of history. The world of Wesnoth is absolutely huge and limited only by your creativity - make your own custom units, compose your own maps, and write your own scenarios or even full-blown campaigns. You can also challenge up to 8 friends - or strangers - and fight in epic multi-player fantasy battles.
|
||||
</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")
|
@ -24,7 +24,10 @@ RESOLUTION=`xrandr | grep Screen | cut -f2 -d"," | sed -e "s/ //g" -e "s/current
|
||||
RESOLUTION_WIDTH=`echo $RESOLUTION | cut -f1 -d "x"`
|
||||
RESOLUTION_HEIGHT=`echo $RESOLUTION | cut -f2 -d "x"`
|
||||
|
||||
# fix permissions lost after unpack
|
||||
chmod +x ./bin/wesnoth
|
||||
mkdir -p image
|
||||
mount -o loop,ro wesnoth.img image
|
||||
|
||||
./bin/wesnoth . -f -r ${RESOLUTION_WIDTH}x${RESOLUTION_HEIGHT}
|
||||
ln -sf image/* .
|
||||
./bin/wesnoth . -f # -r ${RESOLUTION_WIDTH}x${RESOLUTION_HEIGHT}
|
||||
|
||||
umount image
|
||||
|
@ -1 +0,0 @@
|
||||
http://sourceforge.net/projects/wesnoth/files/wesnoth/wesnoth-1.8.3.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user