mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/create_addon: add support for project specific addons
This commit is contained in:
parent
252b7b77c1
commit
71febe4aad
@ -30,6 +30,18 @@ if [ -n "$PKG_ARCH" -a ! "$PKG_ARCH" = "any" ]; then
|
||||
echo "$PKG_ARCH" | grep -q "\-$TARGET_ARCH" && exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$PKG_ADDON_PROJECTS" -a ! "$PKG_ADDON_PROJECTS" = "any" ]; then
|
||||
for _PROJECT in $PKG_ADDON_PROJECTS ; do
|
||||
if [ "$_PROJECT" = "$PROJECT" ] ; then
|
||||
PROJECT_SUPPORTED="yes"
|
||||
fi
|
||||
done
|
||||
if [ ! "$PROJECT_SUPPORTED" = "yes" ] ; then
|
||||
echo "*** ERROR: $PKG_ADDON_ID: '$PROJECT' not supported ***"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$PKG_IS_ADDON" = "yes" ] ; then
|
||||
$SCRIPTS/build $@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user