install.sh: Drop bc dependency
bc
is no longer needed, as we now have a more flexible SCSS
for gnome-shell.
By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.
bc
is no longer needed, as we now have a more flexible SCSS
for gnome-shell.
roundabout,
created on Sunday, 12 April 2020, 16:24:52 (1586708692),
received on Sunday, 11 May 2025, 13:22:53 (1746969773)
Author identity: nana-4 <hnmaigo@gmail.com>
d76a33b21dda2600ddfcdb45741d4c7e08f3bfbb
sudo ./install.sh ``` > NOTE: `./install.sh` requires additional build-time dependency, `bc`.#### Build Options for Meson Option | Default Value | Description
SIZE_VARIANTS=('' '-compact') GTK_VERSIONS=('3.0') GS_VERSIONS=('3.26' '3.28' '3.30' '3.32' '3.34' '3.36')LATEST_GS_VERSION="${GS_VERSIONS[-1]}"if test -z "${GS_VERSION:-}"; thenif [[ -z "${GS_VERSION:-}" ]]; then# Set a proper gnome-shell theme version if command -v gnome-shell >/dev/null; thenif [[ "$(command -v gnome-shell)" ]]; thenCURRENT_GS_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -2)" for version in "${GS_VERSIONS[@]}"; doif (( "$(bc <<< "$CURRENT_GS_VERSION <= $version")" )); thenGS_VERSION="$version"breakelseGS_VERSION="$LATEST_GS_VERSION"fidoneMAJOR_VER="$(echo "$CURRENT_GS_VERSION" | cut -d . -f 1)" MINOR_VER="$(echo "$CURRENT_GS_VERSION" | cut -d . -f 2)" if (( "$MINOR_VER" % 2 == 0 )); then GS_VERSION="$MAJOR_VER.$MINOR_VER" else GS_VERSION="$MAJOR_VER.$(($MINOR_VER + 1))" fielse GS_VERSION="$LATEST_GS_VERSION"echo "'gnome-shell' not found, using styles for last gnome-shell version available." GS_VERSION="3.36"fi fi