#!/usr/bin/env bash
set -euo pipefail

KEY_URL="https://packages.strixon.co.uk/strixon-archive-key.asc"
KEYRING_PATH="/usr/share/keyrings/strixon-archive-keyring.gpg"
SOURCE_LIST="/etc/apt/sources.list.d/strixon.list"
REPO_LINE="deb [signed-by=${KEYRING_PATH}] https://packages.strixon.co.uk stable main"

curl -fsSL "${KEY_URL}" | sudo gpg --dearmor -o "${KEYRING_PATH}"
echo "${REPO_LINE}" | sudo tee "${SOURCE_LIST}" >/dev/null
sudo apt update
sudo apt install -y rxterminal
