Skip to content

Commit

Permalink
Merge pull request #2270 from CvH/9.0-dvb-addons
Browse files Browse the repository at this point in the history
dvb driver addons
  • Loading branch information
MilhouseVH committed Dec 14, 2017
2 parents 677c3c0 + 5f3b67d commit 5a14ccb
Show file tree
Hide file tree
Showing 38 changed files with 5,436 additions and 1,065 deletions.
25 changes: 25 additions & 0 deletions config/functions
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,25 @@ done
-i "$addon_xml"
}

install_driver_addon_files() {
if [ "$#" -eq 0 ] ; then
printf "$(print_color CLR_ERROR "no module search path defined")\n"
exit 1
fi

PKG_MODULE_DIR="$INSTALL/$(get_full_module_dir $PKG_ADDON_ID)/updates/$PKG_ADDON_ID"
PKG_ADDON_DIR="$INSTALL/usr/share/$MEDIACENTER/addons/$PKG_ADDON_ID"

mkdir -p $PKG_MODULE_DIR
find $@ -name \*.ko -exec cp {} $PKG_MODULE_DIR \;

find $PKG_MODULE_DIR -name \*.ko -exec $STRIP --strip-debug {} \;

mkdir -p $PKG_ADDON_DIR
cp $PKG_DIR/changelog.txt $PKG_ADDON_DIR
install_addon_files "$PKG_ADDON_DIR"
}

install_addon_files() {
install_addon_source "$1"
install_addon_images "$1"
Expand Down Expand Up @@ -634,6 +653,12 @@ show_config() {
config_message="$config_message\n - Include driver:\t\t\t $config_driver"
done

if [ "$DRIVER_ADDONS_SUPPORT" = "yes" ]; then
for config_driver_addons in $DRIVER_ADDONS; do
config_message="$config_message\n - Include driver add-ons:\t\t $config_driver_addons"
done
fi

for config_firmware in $FIRMWARE; do
config_message="$config_message\n - Include firmware:\t\t\t $config_firmware"
done
Expand Down
2 changes: 1 addition & 1 deletion config/path
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ unset LD_LIBRARY_PATH

if [ "$PKG_IS_ADDON" = "yes" ] ; then
[ -z $PKG_SECTION ] && PKG_ADDON_ID="$PKG_NAME" || PKG_ADDON_ID="${PKG_SECTION//\//.}.$PKG_NAME"
PKG_NEED_UNPACK="${PKG_NEED_UNPACK} $(get_pkg_directory $MEDIACENTER)"
[ "$PKG_ADDON_IS_STANDALONE" != "yes" ] && PKG_NEED_UNPACK="${PKG_NEED_UNPACK} $(get_pkg_directory $MEDIACENTER)"
fi

# Automatically set PKG_SOURCE_NAME unless it is already defined.
Expand Down
50 changes: 50 additions & 0 deletions packages/addons/script/driverselect/package.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2017-present Team LibreELEC
#
# LibreELEC 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.
#
# LibreELEC 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 LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="driverselect"
PKG_VERSION="2b79180"
PKG_SHA256="ed1e9defa185b46d4400794681f21f2bf1ddf8ccdfdb20e49ddde3edccdd6b7f"
PKG_REV="100"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="https://libreelec.tv"
PKG_URL="https://github.com/b-jesch/script.program.driverselect/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="${PKG_SECTION}.${PKG_NAME}-${PKG_VERSION}*"
PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="script.program"
PKG_SHORTDESC="script.program.driverselect"
PKG_LONGDESC="script.program.driverselect"
PKG_TOOLCHAIN="manual"

PKG_IS_ADDON="yes"
PKG_ADDON_NAME="Driver Select"
PKG_ADDON_TYPE="xbmc.python.script"

unpack() {
mkdir -p $PKG_BUILD/addon
tar --strip-components=1 -xf $SOURCES/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz -C $PKG_BUILD/addon
}

make_target() {
:
}

makeinstall_target() {
mkdir -p $INSTALL/usr/share/kodi/addons/${PKG_SECTION}.${PKG_NAME}
cp -rP $PKG_BUILD/addon/* $INSTALL/usr/share/kodi/addons/${PKG_SECTION}.${PKG_NAME}
}
2 changes: 2 additions & 0 deletions packages/linux-driver-addons/dvb/crazycat/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
100
- Initial add-on
Loading

0 comments on commit 5a14ccb

Please sign in to comment.