mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-12 13:23:27 +00:00
40 lines
1.4 KiB
Makefile
40 lines
1.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="LibreELEC-settings"
|
|
PKG_VERSION="b920d5d83a8a7445d121d2f920169444111bf93c"
|
|
PKG_SHA256="d8147068b6172250d98d41fafd7d6dbaa286074932b537214bf0dab95fe9e99a"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://libreelec.tv"
|
|
PKG_URL="https://github.com/LibreELEC/service.libreelec.settings/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain Python3 connman dbussy"
|
|
PKG_LONGDESC="LibreELEC-settings: is a settings dialog for LibreELEC"
|
|
|
|
PKG_MAKE_OPTS_TARGET="ADDON_VERSION=${OS_VERSION} \
|
|
DISTRONAME=${DISTRONAME} \
|
|
ROOT_PASSWORD=${ROOT_PASSWORD}"
|
|
|
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
|
PKG_DEPENDS_TARGET+=" setxkbmap"
|
|
else
|
|
PKG_DEPENDS_TARGET+=" bkeymaps"
|
|
fi
|
|
|
|
post_makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/lib/libreelec
|
|
cp ${PKG_DIR}/scripts/* ${INSTALL}/usr/lib/libreelec
|
|
sed -e "s/@DISTRONAME@/${DISTRONAME}/g" \
|
|
-i ${INSTALL}/usr/lib/libreelec/backup-restore
|
|
sed -e "s/@DISTRONAME@/${DISTRONAME}/g" \
|
|
-i ${INSTALL}/usr/lib/libreelec/factory-reset
|
|
|
|
ADDON_INSTALL_DIR=${INSTALL}/usr/share/kodi/addons/service.libreelec.settings
|
|
python_compile ${ADDON_INSTALL_DIR}/resources/lib/
|
|
}
|
|
|
|
post_install() {
|
|
enable_service backup-restore.service
|
|
enable_service factory-reset.service
|
|
}
|