debian 12 soporte

This commit is contained in:
fanta 2023-04-26 09:46:45 +02:00
parent 107521ef99
commit 0a7db4e14a
2 changed files with 16 additions and 0 deletions

View File

@ -8,4 +8,5 @@ This script works on these distributions:
* Debian 9
* Debian 11
* Debian 12
* Ubuntu 22.04.1

View File

@ -39,6 +39,21 @@ cat /etc/issue | grep "Debian GNU/Linux 11" 1>/dev/null ; if [ "$?" -ne 1 ]; the
make install
fi
# Debian GNU/Linux 12
cat /etc/issue | grep "Debian GNU/Linux 12" 1>/dev/null ; if [ "$?" -ne 1 ]; then
apt install -y libasound2-dev libflac-dev libsdl2-dev gcc make zlib1g-dev build-essential pkg-config
lastVersion=$(wget -q "https://mednafen.github.io/releases" -O - | tr "<" "\n" | grep -i "tar.xz" | grep -v "server" | grep -iv "unstable" | head -1 | cut -d "\"" -f 2)
lastVersionNameFile=$(echo "$lastVersion" | cut -d "/" -f 4)
lastVersionUrl="https://mednafen.github.io$lastVersion"
wget -q "$lastVersionUrl" -O $d/$lastVersionNameFile
cd $d
tar xfvJ $lastVersionNameFile
cd mednafen
./configure --enable-debugger
make -j$(nproc)
make install
fi
# Ubuntu 22.04.1 LTS
cat /etc/issue | grep "Ubuntu 22.04.1 LTS" 1>/dev/null ; if [ "$?" -ne 1 ]; then
apt install -y libasound2-dev libflac-dev libsdl2-dev gcc make zlib1g-dev build-essential pkg-config