mirror of
https://github.com/YunoHost-Apps/kodi_ynh.git
synced 2024-09-03 19:26:34 +02:00
Improve package management
This commit is contained in:
parent
55844f5d37
commit
2f10f2b4b6
4 changed files with 28 additions and 25 deletions
|
@ -77,15 +77,17 @@ fi
|
|||
#=================================================
|
||||
# INSTALL DEPENDENCIES AND KODI
|
||||
#=================================================
|
||||
if [[ $arch != arm* ]]; then
|
||||
dependencies=""
|
||||
|
||||
if [[ "$arch" != arm* ]]; then
|
||||
cp ../conf/kodi.list "/etc/apt/sources.list.d/${app}.list"
|
||||
ynh_package_update
|
||||
ynh_package_install xorg xinit dbus-x11 kodi
|
||||
dependencies="xorg xinit dbus-x11 kodi"
|
||||
else
|
||||
ynh_package_update
|
||||
ynh_package_install xserver-xorg-legacy xorg dbus-x11 kodi
|
||||
dependencies="xserver-xorg-legacy xorg dbus-x11 kodi"
|
||||
fi
|
||||
|
||||
ynh_package_update
|
||||
ynh_install_app_dependencies "$dependencies"
|
||||
|
||||
#=================================================
|
||||
# X11 SETTINGS
|
||||
|
|
|
@ -68,14 +68,11 @@ ynh_replace_string "allowed_users=anybody" "allowed_users=console" /etc/X11/Xwra
|
|||
#=================================================
|
||||
# REMOVE DEPENDENCIES AND KODI
|
||||
#=================================================
|
||||
if [[ $arch != arm* ]]; then
|
||||
ynh_package_remove xorg xinit dbus-x11 kodi
|
||||
if [[ "$arch" != arm* ]]; then
|
||||
ynh_secure_remove "/etc/apt/sources.list.d/${app}.list"
|
||||
ynh_package_update
|
||||
else
|
||||
ynh_package_remove xserver-xorg-legacy xorg dbus-x11 kodi
|
||||
fi
|
||||
|
||||
ynh_remove_app_dependencies
|
||||
|
||||
#=================================================
|
||||
# REMOVE APP MAIN DIR
|
||||
|
|
|
@ -102,15 +102,17 @@ fi
|
|||
#=================================================
|
||||
# INSTALL DEPENDENCIES AND KODI
|
||||
#=================================================
|
||||
if [[ $arch != arm* ]]; then
|
||||
ynh_restore_file "/etc/apt/sources.list.d/${app}.list"
|
||||
ynh_package_update
|
||||
ynh_package_install xorg xinit dbus-x11 kodi
|
||||
dependencies=""
|
||||
|
||||
if [[ "$arch" != arm* ]]; then
|
||||
cp ../conf/kodi.list "/etc/apt/sources.list.d/${app}.list"
|
||||
dependencies="xorg xinit dbus-x11 kodi"
|
||||
else
|
||||
ynh_package_update
|
||||
ynh_package_install xserver-xorg-legacy xorg dbus-x11 kodi
|
||||
dependencies="xserver-xorg-legacy xorg dbus-x11 kodi"
|
||||
fi
|
||||
|
||||
ynh_package_update
|
||||
ynh_install_app_dependencies "$dependencies"
|
||||
|
||||
#=================================================
|
||||
# X11 SETTINGS
|
||||
|
|
|
@ -78,16 +78,18 @@ ynh_add_systemd_config
|
|||
#=================================================
|
||||
# INSTALL DEPENDENCIES AND KODI
|
||||
#=================================================
|
||||
dependencies=""
|
||||
|
||||
if [[ "$arch" != arm* ]]; then
|
||||
cp ../conf/kodi.list "/etc/apt/sources.list.d/${app}.list"
|
||||
ynh_package_update
|
||||
ynh_package_install xorg xinit dbus-x11 kodi
|
||||
dependencies="xorg xinit dbus-x11 kodi"
|
||||
else
|
||||
ynh_package_update
|
||||
ynh_package_install xserver-xorg-legacy xorg dbus-x11 kodi
|
||||
|
||||
dependencies="xserver-xorg-legacy xorg dbus-x11 kodi"
|
||||
fi
|
||||
|
||||
ynh_package_update
|
||||
ynh_install_app_dependencies "$dependencies"
|
||||
|
||||
|
||||
#=================================================
|
||||
# X11 SETTINGS
|
||||
|
|
Loading…
Add table
Reference in a new issue