#!/bin/bash # SPDX-License-Identifier: GPL-3.0-or-later # Build the Arch package from the repo root. set -eu cd "$(dirname "$0")" command -v makepkg >/dev/null 2>&1 || { echo "error: makepkg not found; install pacman/base-devel tooling first" >&2 exit 127 } echo "Building enodia-sentinel package..." umask 022 makepkg -f --cleanbuild --noconfirm mv -f *.pkg.tar.zst ../ 2>/dev/null || true echo "Done. Install with: sudo pacman -U enodia-sentinel-*.pkg.tar.zst"