-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·36 lines (28 loc) · 870 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·36 lines (28 loc) · 870 Bytes
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
#!/bin/bash
# ------------------------------------------------------------------
# [Freedom] install.sh
# Installs AlienFXAurora to user applications
# ------------------------------------------------------------------
# --- Setup Builddir -----------------------------------------------
rm -f -r ./builddir
meson setup --prefix=$HOME builddir
if [ ! $? -eq 0 ]; then
exit 1
fi
# --- Compile -------------------------------------------------------
cd builddir || exit
meson compile
if [ ! $? -eq 0 ]; then
exit 1
fi
# --- Install -------------------------------------------------------
meson install
if [ ! $? -eq 0 ]; then
exit 1
fi
# --- Update .desktop -----------------------------------------------
file="$HOME/.local/share/applications/AlienFX-Aurora.desktop"
sed -i -e "s/FXUSER/$USER/g" "$file"
if [ ! $? -eq 0 ]; then
exit 1
fi