-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
64 lines (54 loc) · 1.64 KB
/
Copy pathget-dependencies.sh
File metadata and controls
64 lines (54 loc) · 1.64 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
cmake \
doxygen \
fluidsynth \
libdecor \
pipewire-alsa \
pipewire-audio \
pipewire-jack \
rtmidi \
sdl2_mixer \
timidity++
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common --prefer-nano ffmpeg-mini
# Comment this out if you need an AUR package
# make-aur-package zenity-rs-bin
# If the application needs to be manually built that has to be done down here
git clone https://github.com/CorsixTH/CorsixTH ./corsixth
mkdir -p ./AppDir
cd ./corsixth
cp -v ./LICENSE.txt ../AppDir
set --
if [ "${DEVEL_RELEASE-}" = 1 ]; then
echo "Making nightly build of CorsixTH..."
echo "---------------------------------------------------------------"
pacman -S --noconfirm lua-filesystem lua-lpeg
git rev-parse --short HEAD > ~/version
else
echo "Making stable build of CorsixTH..."
echo "---------------------------------------------------------------"
pacman -S --noconfirm lua54 lua54-filesystem lua54-lpeg
git fetch --tags origin
TAG=$(git tag --sort=-v:refname | grep -vi 'rc\|alpha' | head -1)
git checkout "$TAG"
echo "$TAG" > ~/version
set -- \
-DLUA_PROGRAM_PATH=/usr/bin/lua5.4 \
-DLUA_INCLUDE_DIR=/usr/include/lua5.4 \
-DLUA_LIBRARY=/usr/lib/liblua5.4.so
fi
mkdir ./build
cd ./build
cmake ../ \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_UNIT_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
"$@"
make -j$(nproc)
make install