#!/usr/bin/env bash ## Starting point for Debian & Ubuntu packages ... function usage { echo "deb-install.sh [-y] [-d]" echo " Install debian / Ubuntu dependendcies [and build mwp]" echo " -y No confirmation" echo " -d Dependencies only" exit } CONFIRM= DEPSONLY= while getopts "ydh" FOO do case $FOO in y) CONFIRM=-y ;; d) DEPSONLY=1 ;; *) usage ;; esac done [ "$#" -eq 0 ] && usage shift $((OPTIND -1)) CONF=$1 [ -n "$CONF" ] && CONFIRM=-y sudo apt update && sudo apt full-upgrade && \ sudo apt $CONFIRM install \ libvte-2.91-gtk4-dev \ blueprint-compiler \ libprotobuf-c-dev \ libshumate-dev \ libpaho-mqtt-dev \ libgtk-4-dev \ libadwaita-1-dev \ libsecret-1-dev \ valac \ pkg-config \ git build-essential \ meson \ ninja-build \ libbluetooth-dev \ libespeak-ng-libespeak-dev \ libgudev-1.0-dev \ libgstreamer1.0-dev \ libgstreamer-plugins-base1.0-dev \ libncurses5-dev \ golang-go \ ruby ruby-json \ desktop-file-utils \ libspeechd-dev flite flite1-dev libmosquitto-dev \ libprotobuf-c-dev \ libxml2-utils \ librsvg2-dev \ libreadline-dev \ gnuplot ruby-nokogiri unzip sudo apt $CONFIRM install libsdl2-compat-dev || sudo apt $CONFIRM install libsdl2-dev [ -n "$DEPSONLY" ] && exit git clone --depth 1 https://github.com/stronnag/mwptools ( mkdir -p ~/.local/bin cd mwptools meson setup _build --buildtype=release --strip --prefix ~/.local ninja -C _build install ) echo echo "If all went OK, you should have mwp(tools) in $HOME/.local/bin" echo "Please ensure that $HOME/.local/bin is on your PATH" echo "Don't forget to install replay tools, see https://stronnag.github.io/mwptools/replay-tools/"