. "${GRIMOIRE}/FUNCTIONS"
. "${GRIMOIRE}/MESON_FUNCTIONS"
           SPELL="libgbm"
if [[ "${LIBGBM_BRANCH}" == "scm" ]]; then
         VERSION="$(get_scm_version)"
          SOURCE="${SPELL}-scm.tar.xz"
  FORCE_DOWNLOAD="on"
   SOURCE_URL[0]="git_http://github.com/glfs-book/${SPELL}:${SPELL}-scm:trunk"
   SOURCE_IGNORE="volatile"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
else
         VERSION="1.0.6"
     SOURCE_HASH="sha512:99dd81752b6ec624cc8327b5383ef9166284571d1f24862b06481a0cc4f44b7ef5410feb92ac716393cb6b0e09d8cf6f8c830c27623e7adaf1d64a014f3273ef"
          SOURCE="${SPELL}-${VERSION}.tar.gz"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
   SOURCE_URL[0]="https://github.com/glfs-book/${SPELL}/archive//${VERSION}/${SOURCE}"
# Watch: https://github.com/glfs-book/libgbm/tags tags/([0-9.]+)[.]tar
fi
        WEB_SITE="https://github.com/glfs-book/libgbm"
         ENTERED="20260321"
      LICENSE[0]="MIT"
        KEYWORDS="generic buffer management library"
           SHORT="Generic Buffer Management library"
cat << EOF
libgbm is the Generic Buffer Management library, a frontend to GBM which
various vendors rely on to provide a GBM backend. In the case of Mesa, this
will be dri_gbm, and in the case of the NVIDIA driver, it will be
nvidia-drm_gbm, a symlink pointing to libnvidia-allocator.
EOF
