Merge pull request #151 from lrusak/language

Thanks :)
This commit is contained in:
Christian Hewitt 2016-04-14 07:15:40 +04:00
commit 45a13ce8f0
6 changed files with 12 additions and 99 deletions

View File

@ -430,7 +430,6 @@ show_config() {
config_message="$config_message\n $dashes$dashes"
config_message="$config_message\n - Kodi version:\t\t\t $MEDIACENTER"
config_message="$config_message\n - Kodi include language files:\t\t $KODI_LANGUAGE_ADDONS"
config_message="$config_message\n - Kodi nonfree support:\t\t $KODI_NONFREE_SUPPORT"
config_message="$config_message\n - Kodi Blu-Ray support:\t\t $KODI_BLURAY_SUPPORT"
if [ "$KODI_BLURAY_SUPPORT" = "yes" ] ; then

View File

@ -95,9 +95,6 @@
# build with Samba Client support (mounting SAMBA shares with KODI) (yes / no)
KODI_SAMBA_SUPPORT="yes"
# include initial language addons for Kodi (yes / no)
KODI_LANGUAGE_ADDONS="yes"
# build with NFS support (mounting nfs shares via the OS) (yes / no)
NFS_SUPPORT="yes"

View File

@ -1,42 +0,0 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC 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 of the License, or
# (at your option) any later version.
#
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="kodi-language-addons"
PKG_VERSION="ce9947c"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/xbmc/repo-resources"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="mediacenter"
PKG_SHORTDESC="kodi language add-ons"
PKG_LONGDESC="kodi language add-ons"
PKG_AUTORECONF="no"
PKG_IS_ADDON="no"
make_target() {
:
}
makeinstall_target() {
mkdir -p $INSTALL/usr/share/kodi/addons/
cp -PR $ROOT/$PKG_BUILD/* $INSTALL/usr/share/kodi/addons/
}

View File

@ -0,0 +1,12 @@
diff -Naur a/system/peripherals.xml b/system/peripherals.xml
--- a/system/peripherals.xml 2016-03-19 01:20:46.000000000 -0700
+++ b/system/peripherals.xml 2016-04-13 11:07:51.605221474 -0700
@@ -18,7 +18,7 @@
<setting key="cec_wake_screensaver" type="bool" value="1" label="36010" order="7" />
<setting key="standby_pc_on_tv_standby" type="enum" value="13011" label="36029" order="8" lvalues="36028|13005|13011" />
<setting key="standby_tv_on_pc_standby" type="bool" value="1" label="36026" order="9" />
- <setting key="use_tv_menu_language" type="bool" value="1" label="36018" order="10" />
+ <setting key="use_tv_menu_language" type="bool" value="0" label="36018" order="10" />
<setting key="pause_playback_on_deactivate" type="bool" value="1" label="36033" configurable="0" />
<setting key="pause_or_stop_playback_on_deactivate" type="enum" value="231" label="36033" order="11" lvalues="231|36044|36045" />
<setting key="connected_device" type="enum" label="36019" value="36037" lvalues="36037|36038" order="12" />

View File

@ -46,8 +46,4 @@ if [ "$MEDIACENTER" = "kodi" ]; then
# other packages
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET LibreELEC-settings"
if [ "$KODI_LANGUAGE_ADDONS" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET kodi-language-addons"
fi
fi

View File

@ -1,49 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC 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 of the License, or
# (at your option) any later version.
#
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
################################################################################
if [ -z "$1" ]; then
echo "Usage: $0 <branch-name>"
exit 0
fi
echo "getting sources..."
if [ ! -d kodi-language-addons.git ]; then
git clone --depth=1 -b $1 https://github.com/xbmc/repo-resources.git kodi-language-addons.git
fi
cd kodi-language-addons.git
git pull
GIT_REV=`git log -n1 --format=%h`
cd ..
echo "copying sources..."
rm -rf kodi-language-addons-$GIT_REV
cp -R kodi-language-addons.git kodi-language-addons-$GIT_REV
echo "cleaning sources..."
cd kodi-language-addons-$GIT_REV
rm -rf .git
ls | grep -v resource.language | xargs rm -r
cd ..
echo "packing sources..."
tar cvJf kodi-language-addons-$GIT_REV.tar.xz kodi-language-addons-$GIT_REV
echo "remove temporary sourcedir..."
rm -rf kodi-language-addons-$GIT_REV