script.xbmc.lcd: rename to 'xbmc-addon-lcd', add script to get and package, update to xbmc-addon-lcd-6b08848

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-11-14 08:57:52 +01:00
parent 391752526a
commit 4fd35d88e2
5 changed files with 52 additions and 21 deletions

View File

@ -1,17 +0,0 @@
diff -Naur script.xbmc.lcd-dc08f6e/script.xbmc.lcd/lcdmain.py script.xbmc.lcd-dc08f6e.patch/script.xbmc.lcd/lcdmain.py
--- script.xbmc.lcd-dc08f6e/script.xbmc.lcd/lcdmain.py 2012-01-22 19:49:39.000000000 +0100
+++ script.xbmc.lcd-dc08f6e.patch/script.xbmc.lcd/lcdmain.py 2012-01-28 19:34:23.222961732 +0100
@@ -134,11 +134,11 @@
if not g_failedConnectionNotified:
g_failedConnectionNotified = True
text = __settings__.getLocalizedString(500)
- xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (__scriptname__,text,10,__icon__))
+# xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (__scriptname__,text,10,__icon__))
else:
text = __settings__.getLocalizedString(501)
if not g_failedConnectionNotified:
- xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (__scriptname__,text,10,__icon__))
+# xbmc.executebuiltin("XBMC.Notification(%s,%s,%s,%s)" % (__scriptname__,text,10,__icon__))
g_failedConnectionNotified = True
print "lcd: connected to LCD"
break

View File

@ -22,5 +22,5 @@
. config/options $1
mkdir -p $INSTALL/usr/share/xbmc/addons/script.xbmc.lcd
cp -PRf $PKG_BUILD/script.xbmc.lcd/* $INSTALL/usr/share/xbmc/addons/script.xbmc.lcd
mkdir -p $INSTALL/usr/share/xbmc/addons
cp -PRf $PKG_BUILD/script.xbmc.lcd $INSTALL/usr/share/xbmc/addons

View File

@ -18,12 +18,13 @@
# http://www.gnu.org/copyleft/gpl.html
################################################################################
PKG_NAME="script.xbmc.lcd"
PKG_VERSION="dc08f6e"
PKG_NAME="xbmc-addon-lcd"
PKG_VERSION="6b08848"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/Memphiz/script.xbmc.lcd"
PKG_SITE="https://github.com/herrnst/script.xbmc.lcd"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS="Python"
PKG_BUILD_DEPENDS="toolchain"

View File

@ -91,6 +91,10 @@ if [ "$CEC_SUPPORT" = yes ]; then
PKG_DEPENDS="$PKG_DEPENDS libcec"
fi
if [ ! "$LCD_DRIVER" = "none" ]; then
PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-lcd"
fi
if [ "$XBMC_SCR_RSXS" = yes ]; then
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libXt libXmu"
PKG_DEPENDS="$PKG_DEPENDS libXt libXmu"

View File

@ -0,0 +1,43 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
echo "getting sources..."
if [ ! -d xbmc-addon-lcd.git ]; then
git clone git://github.com/herrnst/script.xbmc.lcd.git xbmc-addon-lcd.git
fi
cd xbmc-addon-lcd.git
git pull
GIT_REV=`git log -n1 --format=%h`
cd ..
echo "copying sources..."
rm -rf xbmc-addon-lcd-$GIT_REV
cp -R xbmc-addon-lcd.git xbmc-addon-lcd-$GIT_REV
echo "cleaning sources..."
rm -rf xbmc-addon-lcd-$GIT_REV/.git
echo "packing sources..."
tar cvJf xbmc-addon-lcd-$GIT_REV.tar.xz xbmc-addon-lcd-$GIT_REV
echo "remove temporary sourcedir..."
rm -rf xbmc-addon-lcd-$GIT_REV