probado en debian 9
This commit is contained in:
parent
bb356e3690
commit
107521ef99
|
@ -6,5 +6,6 @@ Mednafen with debug mode enabled.
|
|||
|
||||
This script works on these distributions:
|
||||
|
||||
* Debian 9
|
||||
* Debian 11
|
||||
* Ubuntu 22.04.1
|
||||
|
|
|
@ -9,6 +9,21 @@ fi
|
|||
|
||||
rm -rf $d ; mkdir -p $d
|
||||
|
||||
# Debian GNU/Linux 9
|
||||
cat /etc/issue | grep "Debian GNU/Linux 9" 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
|
||||
|
||||
# Debian GNU/Linux 11
|
||||
cat /etc/issue | grep "Debian GNU/Linux 11" 1>/dev/null ; if [ "$?" -ne 1 ]; then
|
||||
apt install -y libasound2-dev libflac-dev libsdl2-dev gcc make zlib1g-dev build-essential pkg-config
|
||||
|
|
Loading…
Reference in New Issue
Block a user