source $GRIMOIRE/CMAKE_FUNCTIONS
. "$GRIMOIRE/FUNCTIONS"
           SPELL=darktable
if [[ "$DARKTABLE_BRANCH" == "stable" ]]; then
         VERSION=3.8.1
          SOURCE="${SPELL}-${VERSION}.tar.xz"
   SOURCE_URL[0]=https://github.com/darktable-org/darktable/releases/download/release-${VERSION}/${SOURCE}
     SOURCE_HASH=sha256:81ee069054dbde580749b2d3a81cda01b7d169a82ba48731823f3ea560b2bef6:UPSTREAM_HASH
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
else
         VERSION=$(get_scm_version)
  FORCE_DOWNLOAD=on
          SOURCE="${SPELL}-git.tar.bz2"
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-git"
   SOURCE_URL[0]=git://github.com/darktable-org/darktable.git
   SOURCE_IGNORE=volatile
fi
  SECURITY_PATCH=1
        WEB_SITE="http://www.darktable.org"
      LICENSE[0]=GPL
         ENTERED=20120121
           SHORT="an open source photography workflow application and RAW developer"
cat << EOF
darktable is an open source photography workflow application and RAW developer.
A virtual lighttable and darkroom for photographers. It manages your digital
negatives in a database, lets you view them through a zoomable lighttable
and enables you to develop raw images and enhance them.
EOF
