|
|
|
@ -53,3 +53,24 @@ 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.4
|
|
|
|
|
cat /etc/issue | grep "Ubuntu 22.04.4 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
|
|
|
|
|