~mil/sxmo-build

169e776603b753975ebb6c102696740a27bd0263 — Frank Oltmanns 5 months ago 3c31f5d
Add support for Arch Linux ARM

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
1 files changed, 20 insertions(+), 2 deletions(-)

M sxmo_build_all.sh
M sxmo_build_all.sh => sxmo_build_all.sh +20 -2
@@ 6,8 6,26 @@ 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 alpine-sdk || exit 1

if [ -f /etc/os-release ]; then
    # freedesktop.org and systemd
    . /etc/os-release
    OS=$NAME
else
    OS="Unknown"
fi

case $OS in
    "Arch Linux ARM")
        sudo pacman -Syu --needed libxft libx11 libxinerama webkit2gtk xorgproto linux-headers fontconfig freetype2 libxext libinput ncurses base-devel || exit 1
        ;;
    "postmarketOS")
	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 alpine-sdk || exit 1
	;;
    *)
	echo "Unknown distribution! Exiting!"
	exit 1
	;;
esac

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