From ac43838c8b6e672379a2956a5a16ab3a8a9000cd Mon Sep 17 00:00:00 2001 From: cvh Date: Fri, 6 Oct 2017 01:08:17 +0200 Subject: [PATCH] scripts/install_addon: add addon broken support --- config/addon/xbmc.broken.xml | 35 +++++++++++++++++++++++++++++++++++ scripts/install_addon | 3 +++ 2 files changed, 38 insertions(+) create mode 100644 config/addon/xbmc.broken.xml diff --git a/config/addon/xbmc.broken.xml b/config/addon/xbmc.broken.xml new file mode 100644 index 0000000000..3e41803130 --- /dev/null +++ b/config/addon/xbmc.broken.xml @@ -0,0 +1,35 @@ + + + + + +@REQUIRES@ + + + @PKG_ADDON_PROVIDES@ + + + @PKG_SHORTDESC@ + +@PKG_LONGDESC@ + + +@PKG_DISCLAIMER@ + + +@PKG_ADDON_BROKEN@ + + all + +@PKG_ADDON_NEWS@ + + + resources/icon.png + resources/fanart.png +@PKG_ADDON_SCREENSHOT@ + + + diff --git a/scripts/install_addon b/scripts/install_addon index 1b9446cd6c..746d753b27 100755 --- a/scripts/install_addon +++ b/scripts/install_addon @@ -79,10 +79,12 @@ PROVIDER_NAME="Team LibreELEC" if [ ! -z "$PKG_MAINTAINER" ] ; then PROVIDER_NAME="$PKG_MAINTAINER" fi + ADDON_NAME="$PKG_NAME" if [ ! -z "$PKG_ADDON_NAME" ] ; then ADDON_NAME="$PKG_ADDON_NAME" fi + $SED -e "s|@PKG_ADDON_ID@|$PKG_ADDON_ID|g" \ -e "s|@ADDON_NAME@|$ADDON_NAME|g" \ -e "s|@ADDON_VERSION@|$ADDON_VERSION.$PKG_REV|g" \ @@ -94,6 +96,7 @@ $SED -e "s|@PKG_ADDON_ID@|$PKG_ADDON_ID|g" \ -e "s|@PROVIDER_NAME@|$PROVIDER_NAME|g" \ -e "s|@PKG_ADDON_PROVIDES@|$PKG_ADDON_PROVIDES|g" \ -e "s|@PKG_ADDON_SCREENSHOT@|$PKG_ADDON_SCREENSHOT|g" \ + -e "s|@PKG_ADDON_BROKEN@|$PKG_ADDON_BROKEN|g" \ -i $ADDON_BUILD/$PKG_ADDON_ID/addon.xml debug_strip $ADDON_BUILD/$PKG_ADDON_ID