. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/CMAKE_FUNCTIONS"
           SPELL="hyprwayland-scanner"
if [[ "${HYPRWAYLAND_SCANNER_BRANCH}" == "scm" ]]; then
         VERSION="$(get_scm_version)"
          SOURCE="${SPELL}-scm.tar.xz"
  FORCE_DOWNLOAD="on"
   SOURCE_URL[0]="git_http://github.com/hyprwm/${SPELL}:${SPELL}-scm:main"
   SOURCE_IGNORE="volatile"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
else
         VERSION="0.4.6"
     SOURCE_HASH="sha512:c82a4e479fff26f2e9797151ce222d05202585bdf4242829713249ee27e53b987d393f92c031da0ec9c61134590442568010040cbc29a7a3631bc09a2cd3f1bb"
          SOURCE="${SPELL}-${VERSION}.tar.gz"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
   SOURCE_URL[0]="https://github.com/hyprwm/${SPELL}/archive/refs/tags/v${VERSION}.tar.gz"
# Watch: https://github.com/hyprwm/hyprwayland-scanner/tags tags/v([0-9.]+)[.]tar
fi
        WEB_SITE="https://github.com/hyprwm/hyprwayland-scanner"
         ENTERED="20240504"
      LICENSE[0]="BSD"
        KEYWORDS="scanner hyprland"
           SHORT="scanner for Hyprland"
cat << EOF
A Hyprland implementation of wayland-scanner, in and for C++.
EOF
