Add Clear Linux support

This commit is contained in:
Muhammad Rivan 2021-06-08 10:43:47 +07:00
parent 8cf73bb42a
commit fcf6495849
No known key found for this signature in database
GPG key ID: C56A200FD936FAAA

View file

@ -47,8 +47,8 @@ prepare_xbps() {
} }
install_theme_deps() { install_theme_deps() {
if ! has_command glib-compile-resources || ! has_command sassc || \ if ! has_command glib-compile-resources || ! has_command sassc || ! has_command xmllint ||
! has_command xmllint || [[ ! -r "/usr/share/gtk-engines/murrine.xml" ]]; then (! is_my_distro "clear-linux" && [[ ! -r "/usr/share/gtk-engines/murrine.xml" ]]); then
prompt -w "\n'glib2.0', 'sassc', 'xmllint', and 'libmurrine' are required for theme installation.\n" prompt -w "\n'glib2.0', 'sassc', 'xmllint', and 'libmurrine' are required for theme installation.\n"
# Be careful of some distro mechanism, some of them use rolling-release # Be careful of some distro mechanism, some of them use rolling-release
@ -66,7 +66,7 @@ install_theme_deps() {
rootify zypper in -y sassc glib2-devel gtk2-engine-murrine libxml2-tools rootify zypper in -y sassc glib2-devel gtk2-engine-murrine libxml2-tools
elif has_command swupd; then elif has_command swupd; then
# Rolling release # Rolling release
prepare_swupd && rootify dnf install -y sassc glib-dev gtk-xfce-engine libxml2 prepare_swupd && rootify dnf install -y sassc glib-bin libxml2-bin
elif has_command apt; then elif has_command apt; then
rootify apt install -y sassc libglib2.0-dev-bin gtk2-engines-murrine libxml2-utils rootify apt install -y sassc libglib2.0-dev-bin gtk2-engines-murrine libxml2-utils
elif has_command dnf; then elif has_command dnf; then