mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
post_install_addon: new package function
This commit is contained in:
parent
ea6c083486
commit
6105f67998
@ -935,7 +935,7 @@ pkg_call_exists() {
|
||||
pkg_call() {
|
||||
[ -n "${PKG_NAME}" ] || die "$(print_color CLR_ERROR "FAILURE: Cannot call ${1} package function when package is not known!")"
|
||||
|
||||
${1}
|
||||
"${@}"
|
||||
}
|
||||
|
||||
unset_functions() {
|
||||
@ -955,7 +955,7 @@ unset_functions() {
|
||||
|
||||
unset -f pre_install post_install
|
||||
|
||||
unset -f addon
|
||||
unset -f addon post_install_addon
|
||||
}
|
||||
|
||||
# p1: name of package to be sourced
|
||||
@ -1283,6 +1283,10 @@ install_addon_files() {
|
||||
install_addon_images "$1"
|
||||
create_addon_xml "$1"
|
||||
python_fix_abi "$1"
|
||||
|
||||
if pkg_call_exists post_install_addon; then
|
||||
INSTALL="$1" pkg_call post_install_addon
|
||||
fi
|
||||
}
|
||||
|
||||
install_driver_addon_files() {
|
||||
|
@ -154,6 +154,7 @@ Full list of overwrittable functions.
|
||||
| make_\[stage]<br>pre_make_\[stage]<br>post_make_\[stage] | yes | Build of the package |
|
||||
| makeinstall_\[stage]<br>pre_makeinstall_\[stage]<br>post_makeinstall_\[stage] | yes | Installation of the files in the correct pathes<br>host: TOOLCHAIN<br>target: SYSROOT and IMAGE<br>bootstrap and init: temporary destination
|
||||
| addon | - | Copy all files together for addon creation. This is requiered for addons |
|
||||
| post_install_addon | - | Post processing of installed addon files in `${INSTALL}` directory |
|
||||
|
||||
## Late Binding variable assignment
|
||||
|
||||
|
@ -101,7 +101,7 @@ check_func_name() {
|
||||
pre_configure \
|
||||
${TARGET_FUNCS} \
|
||||
pre_install post_install \
|
||||
addon \
|
||||
addon post_install_addon \
|
||||
; do
|
||||
[[ ${line} =~ ^${f} ]] && return 0
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user