romulous75
Posts: 4
Joined: Fri Sep 29, 2017 2:20 pm

[Guide] Installing springlobby client for Spring RTS

Tue Oct 17, 2017 8:45 am

Code: Select all

#!/bin/sh

# build-springlobby.sh

####
# This script will install springlobby on Solus which is required to play Spring RTS (https://springrts.com).
# 
# Installing Spring RTS is a trivial matter - download the static linux version.
# Once you start springlobby, don't forget to goto Edit -> Preferences and [Add New] 
# then select libunitsync.so from where you unpacked Spring 
# -OR- it can download the latest engine for you.
####

APP_NAME="springlobby"
GITREPO="https://github.com/springlobby/springlobby.git"

####
# Install prerequisite packages.
####

sudo eopkg install -y -c system.devel
sudo eopkg install -y libboost-devel wxwidgets-devel curl-devel libpng-devel llvm-clang git

####
# Clone the repo.
####

if [ ! -d "${APP_NAME}" ]
then
  git clone --depth=1 ${GITREPO};
fi

cd ${APP_NAME}

####
# Find the latest tagged version (by date)
####

git fetch --tags
 
LATESTTAG=$(git for-each-ref refs/tags --sort=-taggerdate --format='%(refname:short)' --count=1)
echo "Latest tagged version: ${LATESTTAG}"
git checkout "${LATESTTAG}"
git submodule update --init

####
# Build it.
# @link https://github.com/springlobby/springlobby/wiki/Installfromsource
# alure is not available in the Solus repo, so disable the sound for now.
####

cmake . -DOPTION_SOUND=OFF
make -j$(nproc)

####
# Install it.
####

echo "Installing as root:"
sudo make install


Return to “Tutorials”