mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-05 17:07:49 +00:00
mame: update package for new create_addon script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
c836206b53
commit
e41a2ab228
9
packages/addons/emulators/mame/addon
Executable file
9
packages/addons/emulators/mame/addon
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $ADDON_BUILD/mkimage
|
||||
cp $PKG_DIR/config/mame.ini $ADDON_BUILD/mkimage
|
||||
|
||||
mkdir -p $ADDON_BUILD/mkimage/bin
|
||||
cp $PKG_BUILD/mame $ADDON_BUILD/mkimage/bin
|
@ -1,16 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build SDL
|
||||
$SCRIPTS/build expat
|
||||
$SCRIPTS/build zlib
|
||||
|
||||
ADDON_ID="addon.emulators.$1"
|
||||
ADDON_VERSION="2"
|
||||
|
||||
PKG_DIR=`find $ROOT/$PACKAGES -type d -name $1`
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
@ -63,16 +53,3 @@ cd $PKG_BUILD
|
||||
SUFFIX64="" \
|
||||
$ARCH_OPTS \
|
||||
$DEBUG_OPTS
|
||||
|
||||
mkdir -p .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
|
||||
|
||||
cp $PKG_DIR/config/mame.ini .addons/$ADDON_ID
|
||||
|
||||
mkdir -p .addons/$ADDON_ID/bin
|
||||
cp mame .addons/$ADDON_ID/bin
|
||||
|
||||
cd .addons
|
||||
zip -rq $ADDON_ID-$OS_VERSION.$ADDON_VERSION.zip $ADDON_ID
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
ADDON_ID="addon.emulators.$1"
|
||||
ADDON_VERSION="2"
|
||||
|
||||
PKG_DIR=`find $PACKAGES -type d -name $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
|
14
packages/addons/emulators/mame/meta
Normal file
14
packages/addons/emulators/mame/meta
Normal file
@ -0,0 +1,14 @@
|
||||
PKG_NAME="mame"
|
||||
PKG_VERSION="0138s"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="free"
|
||||
PKG_SITE="http://www.mame.org"
|
||||
PKG_URL="http://sources.openelec.tv/svn/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS="libX11 libXinerama SDL expat zlib"
|
||||
PKG_BUILD_DEPENDS="toolchain libX11 libXinerama SDL expat zlib"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="emulators"
|
||||
PKG_SHORTDESC="(Emulator) MAME: Multiple Arcade Machine Emulator"
|
||||
PKG_LONGDESC="MAME stands for Multiple Arcade Machine Emulator. When used in conjunction with images of the original arcade game's ROM and disk data, MAME attempts to reproduce that game as faithfully as possible on a more modern general-purpose computer. MAME can currently emulate several thousand different classic arcade video games from the late 1970s through the modern era."
|
||||
PKG_IS_ADDON="yes"
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="@ADDON_ID@"
|
||||
name="(Emulator) Multiple Arcade Machine Emulator"
|
||||
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>MAME - Multiple Arcade Machine Emulator</summary>
|
||||
<description>
|
||||
MAME stands for Multiple Arcade Machine Emulator. When used in conjunction with images of the original arcade game's ROM and disk data, MAME attempts to reproduce that game as faithfully as possible on a more modern general-purpose computer. MAME can currently emulate several thousand different classic arcade video games from the late 1970s through the modern era.
|
||||
</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")
|
@ -30,7 +30,11 @@
|
||||
mkdir -p $HOME/emulators/mame/cheat
|
||||
mkdir -p $HOME/emulators/mame/crosshair
|
||||
|
||||
# fix permissions lost after unpack
|
||||
chmod +x ./bin/mame
|
||||
mkdir -p image
|
||||
mount -o loop mame.img image
|
||||
|
||||
ln -sf image/* .
|
||||
./bin/mame $@
|
||||
|
||||
umount image
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
http://sources.openelec.tv/svn/mame-0138s.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user