From cccaf7fc2540eccb4b590e994c75319ee384a11c Mon Sep 17 00:00:00 2001 From: fanta Date: Thu, 11 Apr 2024 10:45:39 +0200 Subject: [PATCH] opentomb --- 06-opentomb | 25 +++++++++++++++++++++++++ README.md | 1 + 2 files changed, 26 insertions(+) create mode 100755 06-opentomb diff --git a/06-opentomb b/06-opentomb new file mode 100755 index 0000000..a34e401 --- /dev/null +++ b/06-opentomb @@ -0,0 +1,25 @@ +#!/bin/bash +# Fanta +# 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 + diff --git a/README.md b/README.md index 15bcbda..ab67ee3 100755 --- a/README.md +++ b/README.md @@ -3,3 +3,4 @@ Scripts que uso para compilar algunos programas en Debian. ## 01-scummvm - para compilar la última versión de Scummvm +## 02-dosbox-x - para compilar la última versión de dosbox-x