-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
58 lines (48 loc) · 1.83 KB
/
get-dependencies.sh
File metadata and controls
58 lines (48 loc) · 1.83 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
fontconfig \
libdecor \
python \
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
# If the application needs to be manually built that has to be done down here
echo "Making nightly build of Xash3D-FWGS..."
echo "---------------------------------------------------------------"
REPO="https://github.com/FWGS/xash3d-fwgs"
VERSION="$(git ls-remote "$REPO" HEAD | cut -c 1-9 | head -1)"
git clone --recursive --depth 1 "$REPO" ./xash3d-fwgs
echo "$VERSION" > ~/version
mkdir -p /opt/xash3d
cd ./xash3d-fwgs
./waf configure -8 -T release --enable-lto --enable-poly-opt
./waf build
mv -v 3rdparty/vgui_support/vgui-dev/lib/vgui.so /opt/xash3d
cd build
mv -v game_launch/xash3d /opt/xash3d
mv -v filesystem/filesystem_stdio.so /opt/xash3d
mv -v engine/libxash.so /opt/xash3d
mv -v 3rdparty/mainui/libmenu.so /opt/xash3d
mv -v 3rdparty/extras/extras.pk3 /opt/xash3d
mv -v ref/gl/libref_gl.so /opt/xash3d
mv -v ref/soft/libref_soft.so /opt/xash3d
echo "Making nightly build of Portable Half-Life SDK..."
echo "---------------------------------------------------------------"
# hlsdk-portable Libs required to make half-life 1 base game to work
git clone --recursive --depth 1 https://github.com/FWGS/hlsdk-portable ./hlsdk-portable
cd ./hlsdk-portable
./waf configure -T release -8
./waf
case "$ARCH" in # they use AMD64 and ARM64 for libs
x86_64) lib_arch=amd64;;
aarch64) lib_arch=arm64;;
esac
mv -v build/cl_dll/client_$lib_arch.so /opt/xash3d
mv -v build/dlls/hl_$lib_arch.so /opt/xash3d