. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/CMAKE_FUNCTIONS"
           SPELL="hyprpaper"
if [[ "${HYPRPAPER_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.8.4"
     SOURCE_HASH="sha512:919b13f3e2a48ff067fec3713f2d7bc1bfda5d3b14a8bf819a49a8a5c5b0571781c31b508d16e71d68d17042607617ec8a34657f706e089f82ec2f14d1b7ffa1"
          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/hyprpaper/tags tags/v([0-9.]+)[.]tar
fi
        WEB_SITE="https://github.com/hyprwm/hyprpaper"
         ENTERED="20230320"
      LICENSE[0]="BSD"
        KEYWORDS="wallpaper wayland wlroots"
           SHORT="blazing fast wayland wallpaper utility with IPC controls"
cat << EOF
Hyprpaper is a blazing fast wallpaper utility for Hyprland with the ability to
dynamically change wallpapers through sockets. It will work on all
wlroots-based compositors, though.
EOF
