-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
46 lines (39 loc) · 1.37 KB
/
Copy pathget-dependencies.sh
File metadata and controls
46 lines (39 loc) · 1.37 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
cmake \
libdecor \
python-jinja \
sdl2
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 OpenBoardView..."
echo "---------------------------------------------------------------"
git clone --recursive --depth 1 https://github.com/OpenBoardView/OpenBoardView ./OpenBoardView
mkdir -p ./AppDir/bin
cd ./OpenBoardView
if [ "${DEVEL_RELEASE-}" = 1 ]; then
echo "Making nightly build of OpenBoardView..."
echo "---------------------------------------------------------------"
git rev-parse --short HEAD > ~/version
else
echo "Making stable build of OpenBoardView..."
echo "---------------------------------------------------------------"
TAG=$(git tag | grep -vi 'rc\|alpha\|^R' | sort -nr | head -1)
if [ -z "$TAG" ]; then
TAG=$(git rev-parse --short HEAD)
else
git checkout "$TAG"
fi
echo "$TAG" > ~/version
fi
cmake -DCMAKE_BUILD_TYPE=Release ./
make -j"$(nproc)"
mv -v ./src/openboardview/openboardview ../AppDir/bin