|
@@ -65,6 +65,14 @@ setup_apk() {
|
|
|
fontconfig-dev build-base || return 1
|
|
fontconfig-dev build-base || return 1
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+setup_zypper() {
|
|
|
|
|
+ ZYPPER="$SUDO $1"
|
|
|
|
|
+
|
|
|
|
|
+ $ZYPPER install -y gcc gcc-c++ kernel-headers cmake jq wget git \
|
|
|
|
|
+ pkg-config clang openssl-devel findutils \
|
|
|
|
|
+ fontconfig-devel || return 1
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
case "$(uname -s)" in
|
|
case "$(uname -s)" in
|
|
|
Linux)
|
|
Linux)
|
|
|
if command -v apt >/dev/null; then
|
|
if command -v apt >/dev/null; then
|
|
@@ -110,6 +118,13 @@ Linux)
|
|
|
exit 0
|
|
exit 0
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ if command -v zypper; then
|
|
|
|
|
+ echo "Setting up for zypper" >&2
|
|
|
|
|
+ setup_zypper "$(command -v zypper)" || exit 1
|
|
|
|
|
+ echo "Dependencies installed!" >&2
|
|
|
|
|
+ exit 0
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
echo "Error: Could not recognize your package manager." >&2
|
|
echo "Error: Could not recognize your package manager." >&2
|
|
|
exit 1
|
|
exit 1
|
|
|
;;
|
|
;;
|