~mil/sxmo-build

ref: e27226874538950b0cccb3947909299960b17bcc sxmo-build/sxmo_build_all.sh -rwxr-xr-x 875 bytes
e2722687Maarten van Gompel solve permission issue 8 months ago
                                                                                
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
#!/bin/sh

mkdir -p build-sxmo-dev || exit 1

cd build-sxmo-dev || exit 1


echo "Installing build dependencies (permanently, this may prompt for your sudo password)">&2
sudo apk add libxft-dev libx11-dev libxinerama-dev webkit2gtk-dev xproto linux-headers fontconfig-dev freetype-dev libxext-dev || exit 1


repos="~mil/sxmo-utils ~mil/sxmo-dwm ~mil/sxmo-dmenu ~mil/lisgd ~mil/sxmo-surf ~mil/sxmo-st ~proycon/svkbd ~proycon/sxmo-xdm-config"

for repo in $repos; do
	echo "Obtaining $repo...">&2
	repodir="$(basename "$repo")"
	if [ -d "$repodir" ]; then
		cd "$repodir" || exit 1
		git pull --ff-only || exit 1
	else
		git clone "https://git.sr.ht/$repo" || exit 1
		cd "$repodir" || exit 1
	fi
	echo "Building $repo... (may request sudo password)">&2
	sudo make clean
	sudo make PREFIX=/usr install || exit 1
	cd .. || exit 1
done

cd .. || exit 1

echo "All done!"
exit 0