From 178324eaa1f4a209e4ccfa8e8bf1b36912929c10 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 6 Jan 2025 17:07:53 -0800 Subject: [PATCH] Update mosh compile to get specific versions --- recipes/no-sudo/build-mosh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/recipes/no-sudo/build-mosh b/recipes/no-sudo/build-mosh index 55e4acc..5b09891 100755 --- a/recipes/no-sudo/build-mosh +++ b/recipes/no-sudo/build-mosh @@ -2,6 +2,7 @@ set -e cd "$TMP_DIR" +MOSH_VERSION=1.4.0 sudo_package automake libtool g++ protobuf-compiler libprotobuf-dev libboost-dev libutempter-dev libncurses5-dev zlib1g-dev libio-pty-perl libssl-dev pkg-config @@ -50,8 +51,16 @@ sudo_package automake libtool g++ protobuf-compiler libprotobuf-dev libboost-dev # fi # Clone mosh -git clone --depth 1 https://github.com/mobile-shell/mosh -cd mosh +MOSH_FOLDER="mosh-${MOSH_VERSION}" +MOSH_FILE="mosh-${MOSH_VERSION}.tar.gz" +if ! [ -d "$MOSH_FOLDER" ]; then + if ! [ -f "$MOSH_FILE" ]; then + wget "https://mosh.org/${MOSH_FILE}" + fi + tar -xzf "$MOSH_FILE" +fi + +cd "$MOSH_FOLDER" # Set the path for pkgconfig export PKG_CONFIG_PATH=$LOCAL_PREFIX/lib/pkgconfig