mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts: update checkdeps for openjdk and libjson-perl on Arch
This commit is contained in:
parent
2c482f45e2
commit
ea8fa964c1
@ -34,6 +34,11 @@ test_libjson-perl()
|
||||
perl -MJSON -e 'exit(0);' 2>/dev/null
|
||||
}
|
||||
|
||||
test_perl-json()
|
||||
{
|
||||
test_libjson-perl
|
||||
}
|
||||
|
||||
if [ -f /etc/lsb-release ]; then
|
||||
DISTRO=$(grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr A-Z a-z)
|
||||
fi
|
||||
@ -63,7 +68,7 @@ case "$DISTRO" in
|
||||
;;
|
||||
arch)
|
||||
deps="$deps g++ mkfontscale mkfontdir bdftopcf xsltproc java"
|
||||
deps_pkg="$deps_pkg g++ xorg-mkfontscale xorg-mkfontdir xorg-bdftopcf libxslt java-runtime-common"
|
||||
deps_pkg="$deps_pkg g++ xorg-mkfontscale xorg-mkfontdir xorg-bdftopcf libxslt java-runtime-common jdk8-openjdk"
|
||||
;;
|
||||
opensuse)
|
||||
deps="$deps g++ mkfontscale mkfontdir bdftopcf xsltproc java"
|
||||
@ -78,7 +83,14 @@ esac
|
||||
|
||||
if ! test_libjson-perl; then
|
||||
files="$files perl/JSON.pm"
|
||||
files_pkg="$files_pkg libjson-perl"
|
||||
case "$DISTRO" in
|
||||
arch)
|
||||
files_pkg="$files_pkg perl-json"
|
||||
;;
|
||||
*)
|
||||
files_pkg="$files_pkg libjson-perl"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# project specific dependencies
|
||||
|
Loading…
x
Reference in New Issue
Block a user