1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kodi_ynh.git synced 2024-09-03 19:26:34 +02:00

Fix package_check

This commit is contained in:
yalh76 2021-08-26 21:14:07 +02:00
parent 333259b4ed
commit 8939d35f67
5 changed files with 47 additions and 0 deletions

21
conf/xorg.conf Normal file
View file

@ -0,0 +1,21 @@
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSectionSub "Display"
Depth 24
Modes "1024x800"
EndSubSection
EndSection

View file

@ -9,6 +9,8 @@ pkg_dependencies="xorg xinit dbus-x11 kodi"
arm_pkg_dependencies="xserver-xorg-legacy xorg dbus-x11 kodi"
package_check_dependencies="xserver-xorg-video-dummy"
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -86,12 +86,20 @@ tmpdir=$(mktemp -d)
ynh_setup_source --dest_dir="$tmpdir" --source_id="deb-multimedia-keyring"
dpkg -i "$tmpdir/deb-multimedia-keyring.deb"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
pkg_dependencies="$pkg_dependencies $package_check_dependencies"
fi
if [[ $arch != arm* ]]; then
ynh_install_extra_app_dependencies --repo="deb https://www.deb-multimedia.org/ buster main non-free" --package="$pkg_dependencies"
else
ynh_install_extra_app_dependencies --repo="deb https://www.deb-multimedia.org/ buster main non-free" --package="$arm_pkg_dependencies"
fi
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
cp ../conf/xorg.conf /etc/X11/xorg.conf
fi
#=================================================
# CREATE DEDICATED USER
#=================================================

View file

@ -103,12 +103,20 @@ tmpdir=$(mktemp -d)
ynh_setup_source --dest_dir="$tmpdir" --source_id="deb-multimedia-keyring"
dpkg -i "$tmpdir/deb-multimedia-keyring.deb"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
pkg_dependencies="$pkg_dependencies $package_check_dependencies"
fi
if [[ $arch != arm* ]]; then
ynh_install_extra_app_dependencies --repo="deb https://www.deb-multimedia.org/ buster main non-free" --package="$pkg_dependencies"
else
ynh_install_extra_app_dependencies --repo="deb https://www.deb-multimedia.org/ buster main non-free" --package="$arm_pkg_dependencies"
fi
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
cp ../conf/xorg.conf /etc/X11/xorg.conf
fi
#=================================================
# RESTORE SYSTEMD
#=================================================

View file

@ -110,12 +110,20 @@ tmpdir=$(mktemp -d)
ynh_setup_source --dest_dir="$tmpdir" --source_id="deb-multimedia-keyring"
dpkg -i "$tmpdir/deb-multimedia-keyring.deb"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
pkg_dependencies="$pkg_dependencies $package_check_dependencies"
fi
if [[ $arch != arm* ]]; then
ynh_install_extra_app_dependencies --repo="deb https://www.deb-multimedia.org/ buster main non-free" --package="$pkg_dependencies"
else
ynh_install_extra_app_dependencies --repo="deb https://www.deb-multimedia.org/ buster main non-free" --package="$arm_pkg_dependencies"
fi
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
cp ../conf/xorg.conf /etc/X11/xorg.conf
fi
#=================================================
# SETUP SYSTEMD
#=================================================