-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
34 lines (27 loc) · 981 Bytes
/
get-dependencies.sh
File metadata and controls
34 lines (27 loc) · 981 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
cmake \
libdecor \
sdl3
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common --prefer-nano
# Comment this out if you need an AUR package
make-aur-package libsmacker
# If the application needs to be manually built that has to be done down here
echo "Making nightly build of lba2 community..."
echo "---------------------------------------------------------------"
REPO="https://github.com/LBALab/lba2-classic-community"
VERSION="$(git ls-remote "$REPO" HEAD | cut -c 1-9 | head -1)"
git clone "$REPO" ./lba2-community
echo "$VERSION" > ~/version
mkdir -p ./AppDir/bin
cd ./lba2-community
mkdir -p build && cd build
cmake .. -DCONSOLE_MODULE=ON
make -j$(nproc)
mv -v SOURCES/lba2 ../../AppDir/bin