~mil/sxmo-build

ref: 7433f510cbd90cbef0e94963e0f898af14273f97 sxmo-build/sxmo_build_all.sh -rwxr-xr-x 1.0 KiB
7433f510Maarten van Gompel bugfix for installing sxmo-utils, ended up in /usr/usr 7 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
34
35
36
37
38
39
40
#!/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 libinput-dev libudev-zero-dev ncurses || exit 1


repos="~mil/sxmo-utils ~mil/sxmo-dwm ~mil/sxmo-dmenu ~mil/lisgd ~mil/sxmo-surf ~mil/sxmo-st ~proycon/svkbd ~mil/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
	if [ -f config.def.h ] && [ -f config.h ]; then
		cp -f config.def.h config.h
	fi
	if [ "$repo" = "~mil/sxmo-utils" ]; then
		sudo make install || exit 1
	else
		sudo make PREFIX=/usr install || exit 1
	fi
	cd .. || exit 1
done

cd .. || exit 1

echo "All done!"
exit 0