You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
709 B
Bash

#!/bin/bash
# Fanta <fanta@56k.es>
# Script para compilar la versión más reciente de opentomb
d="/tmp/OpenTomb"
if [ "$(whoami)" != "root" ]; then
echo "[+] Checking root user"
echo -e "\e[31m\e[1m[NOT OK]\e[0m Run it with root please" && exit
fi
# Linux Mint 21.2
rm -rf $d
cat /etc/issue | grep "Linux Mint 21.2 Victoria" 1>/dev/null ; if [ "$?" -ne 1 ]; then
apt update -y && apt -y install cmake gcc g++ libopenal-dev libpthread-stubs0-dev libboost-thread-dev libsdl2-dev libglu1-mesa-dev zlib1g-dev libpng-dev ffmpeg git lua5.4
git clone https://github.com/opentomb/OpenTomb $d
cd $d
mkdir build
cd build
cmake ..
make
cp -pRv OpenTomb /usr/bin/
chmod +x /usr/bin/OpenTomb
fi