-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
41 lines (32 loc) · 1.09 KB
/
get-dependencies.sh
File metadata and controls
41 lines (32 loc) · 1.09 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
libdecor \
libx11 \
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
# If the application needs to be manually built that has to be done down here
echo "Building Mini vMac..."
echo "---------------------------------------------------------------"
REPO="https://github.com/minivmac/minivmac"
echo "Making nightly build of Mini vMac..."
# Get the latest tag
TAG=$(git ls-remote --tags --sort="v:refname" "$REPO" | tail -n1 | sed 's/.*\///; s/\^{}//')
# Get the short hash
HASH=$(git ls-remote "$REPO" HEAD | cut -c 1-8)
VERSION="${TAG}-${HASH}"
git clone "$REPO" ./minivmac
echo "$VERSION" > ~/version
# BUILD Mini vMac
cd ./minivmac
gcc setup/tool.c -o setup_t
./build_linux.sh
# install all model-specific executables
cp -r "minivmac"* /usr/bin/