-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
43 lines (37 loc) · 1.42 KB
/
Copy pathget-dependencies.sh
File metadata and controls
43 lines (37 loc) · 1.42 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 \
glslang \
glu \
vulkan-headers
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 "Building OpenGothic..."
echo "---------------------------------------------------------------"
mkdir -p ./AppDir/bin
git clone --recursive --depth 1 https://github.com/Try/OpenGothic ./OpenGothic
cd ./OpenGothic
#if [ "${DEVEL_RELEASE-}" = 1 ]; then
echo "Making nightly build..."
git rev-parse --short HEAD > ~/version
#else
# echo "Making stable build of OpenGothic..."
# echo "---------------------------------------------------------------"
# git fetch --tags --depth 1
# RAW_TAG=$(git tag -l "opengothic-v*" | sort -V | tail -n 1)
# git checkout "$RAW_TAG"
# echo "$RAW_TAG" | sed 's/opengothic-v//' > ~/version
#fi
sed -i '4i#include <cstdint>' game/dmusic/soundfont.h
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wno-error=stringop-overflow" ..
make -j$(nproc)
mv -v opengothic/Gothic2Notr ../../AppDir/bin