opentomb
parent
c97fe3fd7f
commit
cccaf7fc25
@ -0,0 +1,25 @@
|
|||||||
|
#!/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
|
||||||
|
|
Loading…
Reference in New Issue