mirror of
https://git.56k.es/fanta/compile.git
synced 2024-09-08 00:00:16 +02:00
ubunutu
This commit is contained in:
parent
cccaf7fc25
commit
9fd43aa3df
21
04-love2d.sh
21
04-love2d.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user