|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Fanta <fanta@56k.es>
|
|
|
|
|
# Script para compilar love2d última versión en diferentes distros GNU Linux
|
|
|
|
|
# Script para compilar love2d última versión en Debian
|
|
|
|
|
|
|
|
|
|
d="/tmp/love2d"
|
|
|
|
|
|
|
|
|
@ -53,23 +53,3 @@ cat /etc/issue | grep "Debian GNU/Linux 12" 1>/dev/null ; if [ "$?" -ne 1 ]; the
|
|
|
|
|
chmod +x /usr/local/bin/love
|
|
|
|
|
love
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Ubuntu 22.04.2 LTS
|
|
|
|
|
cat /etc/issue | grep "Ubuntu 22.04.2 LTS" 1>/dev/null ; if [ "$?" -ne 1 ]; then
|
|
|
|
|
apt install -y git gcc g++ make cmake lua5.4 libgl1-mesa-dev libfreetype6-dev libmodplug-dev libopenal-dev libsdl2-dev libtheora-dev libvorbis-dev libmpg123-dev libluajit-5.1-dev
|
|
|
|
|
repositorio="https://github.com/love2d/love"
|
|
|
|
|
git clone "$repositorio"
|
|
|
|
|
cd love
|
|
|
|
|
lastVersion=$(git tag --list --sort=-taggerdate | tail -1)
|
|
|
|
|
cd ..
|
|
|
|
|
rm -rf love
|
|
|
|
|
git clone $repositorio -b $lastVersion
|
|
|
|
|
cd love
|
|
|
|
|
mkdir -p build
|
|
|
|
|
cd build
|
|
|
|
|
cmake ..
|
|
|
|
|
make -j$(nproc)
|
|
|
|
|
cp -pRv love /usr/local/bin/
|
|
|
|
|
chmod +x /usr/local/bin/love
|
|
|
|
|
love
|
|
|
|
|
fi
|
|
|
|
|