-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_love2d.sh
executable file
·41 lines (36 loc) · 1.24 KB
/
install_love2d.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
OS=`sudo cat /etc/os-release | grep ID_LIKE | grep -o '[a-z]' | tr -d '\n'`
if [[ $OS == "arch" ]]
then
sudo pacman -S --noconfirm luajit \
freetype2 \
mpg123 \
openal \
libvorbis \
libtheora \
libmodplug \
sdl2 \
shared-mime-info \
hicolor-icon-theme \
desktop-file-utils
else
sudo apt install -y build-essential \
autotools-dev \
automake libtool \
pkg-config \
libfreetype6-dev \
libluajit-5.1-dev \
libphysfs-dev \
libsdl2-dev \
libopenal-dev \
libogg-dev \
libvorbis-dev \
libmodplug-dev \
libmpg123-dev \
libtheora-dev
fi
git clone https://github.com/love2d/love $HOME/Bin/love
cd $HOME/Bin/love
. ./platform/unix/automagic
. ./configure
make