mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/create_addon: drop PKG_ADDON_EXTENSIONS
special addons should be handled via addon templates in config/addon/
This commit is contained in:
parent
3fcd79ce7c
commit
f8519f839e
@ -11,7 +11,6 @@
|
||||
<extension point="xbmc.python.script" library="default.py">
|
||||
<provides>executable</provides>
|
||||
</extension>
|
||||
@EXTENSIONS@
|
||||
<extension point="xbmc.addon.metadata">
|
||||
<summary>@PKG_SHORTDESC@</summary>
|
||||
<description>
|
||||
|
@ -11,7 +11,6 @@
|
||||
<extension point="xbmc.service" library="default.py">
|
||||
<provides>executable</provides>
|
||||
</extension>
|
||||
@EXTENSIONS@
|
||||
<extension point="xbmc.addon.metadata">
|
||||
<summary>@PKG_SHORTDESC@</summary>
|
||||
<description>
|
||||
|
@ -52,22 +52,6 @@ if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
||||
REQUIRES="$REQUIRES\n <import addon=\"$REQUIRES_ADDONNAME\" version=\"$REQUIRES_ADDONVERSION\" />"
|
||||
done
|
||||
|
||||
for i in $PKG_ADDON_EXTENSIONS; do
|
||||
EXTENSIONS_POINT=`echo $i | cut -f1 -d ":"`
|
||||
EXTENSIONS_LIBRARY=`echo $i | cut -f2 -d ":"`
|
||||
EXTENSIONS_SERVICE_START=`echo $i | cut -f3 -d ":"`
|
||||
EXTENTION_TEMP=" <extension point=\"$EXTENSIONS_POINT\" library=\"$EXTENSIONS_LIBRARY\""
|
||||
|
||||
if [ "$EXTENSIONS_POINT" = "xbmc.service" -a -n "$EXTENSIONS_SERVICE_START" ]; then
|
||||
EXTENTION_TEMP="$EXTENTION_TEMP start=\"$EXTENSIONS_SERVICE_START\">"
|
||||
else
|
||||
EXTENTION_TEMP="$EXTENTION_TEMP>"
|
||||
fi
|
||||
|
||||
EXTENTION_TEMP="$EXTENTION_TEMP\n <provides>executable</provides>\n </extension>"
|
||||
EXTENSIONS="$EXTENSIONS\n$EXTENTION_TEMP"
|
||||
done
|
||||
|
||||
unset IFS
|
||||
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID
|
||||
@ -86,7 +70,6 @@ if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
||||
-e "s|@PKG_LONGDESC@|$PKG_LONGDESC|g" \
|
||||
-e "s|@PKG_DISCLAIMER@|$PKG_DISCLAIMER|g" \
|
||||
-e "s|@PROVIDER_NAME@|$PROVIDER_NAME|g" \
|
||||
-e "s|@EXTENSIONS@|$EXTENSIONS|g" \
|
||||
-i $ADDON_BUILD/$PKG_ADDON_ID/addon.xml
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user