-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
43 lines (36 loc) · 1.19 KB
/
get-dependencies.sh
File metadata and controls
43 lines (36 loc) · 1.19 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
cmake \
enet \
glew \
libdecor \
openal \
sdl2 \
unicorn
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common --prefer-nano
# Comment this out if you need an AUR package
#make-aur-package PACKAGENAME
# If the application needs to be manually built that has to be done down here
echo "Making nightly build of OpenSWE1R..."
echo "---------------------------------------------------------------"
REPO="https://github.com/OpenSWE1R/openswe1r"
VERSION="$(git ls-remote "$REPO" HEAD | cut -c 1-9 | head -1)"
git clone "$REPO" ./openswe1r
echo "$VERSION" > ~/version
mkdir -p ./AppDir/bin
cd ./openswe1r
mkdir -p build && cd build
[ "$ARCH" = "x86_64" ] && VM_STATUS="ON" || VM_STATUS="OFF"
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_VM="$VM_STATUS" \
-DCMAKE_C_FLAGS="-Wno-incompatible-pointer-types" \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
make -j$(nproc)
mv -v openswe1r ../../AppDir/bin