The Battle for Wesnoth is a popular turn-based strategy game that you can play on your Linux machine. Here's how to install it on EndeavourOS, the latest version of the Arch-based Linux distribution.
Before you begin, make sure you have the following:
Open a terminal emulator application on your EndeavourOS.
Type the following command to install the required dependencies:
sudo pacman -S cmake gcc make sdl2 sdl2_image sdl2_ttf gettext bzip2
Clone the Wesnoth GitHub repository by running the following command:
git clone https://github.com/wesnoth/wesnoth.git
Change to the Wesnoth source code directory by running the following command:
cd wesnoth
Create a build directory by running the following command:
mkdir build
Change to the build directory by running the following command:
cd build
Run the CMake command to generate the build files:
cmake .. -DCMAKE_BUILD_TYPE=Release -DWANT_LTO=1
Note: This particular command is tuned for a release build with Link Time Optimization enabled. You can tweak it according to your needs.
Compile Wesnoth by running the following command:
make -j$(nproc)
This command will build the executable files in your build directory.
Install Wesnoth by running the following command:
sudo make install
This will copy the executable files to /usr/local/bin and the Wesnoth data files to /usr/local/share/games/wesnoth/.
Once you've installed Wesnoth, you can start the game by running the following command:
wesnoth
Alternatively, you can start the game from your system's application launcher.
Congratulations! You've successfully installed The Battle for Wesnoth on your EndeavourOS machine. Enjoy the game!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!