           SPELL=wesnoth
if [ "$WESNOTH_DEVEL" == "y" ]; then
         VERSION=1.16.1
          BRANCH=`echo $VERSION|cut -d. -f1,2`
          SOURCE=$SPELL-$VERSION.tar.bz2
     OLD_VERSION=${OLD_VERSION:-$VERSION}
else
         VERSION=1.16.1
          BRANCH=`echo $VERSION|cut -d. -f1,2`
          SOURCE=$SPELL-$VERSION.tar.bz2
     OLD_VERSION=${OLD_VERSION:-$VERSION}
fi
  SECURITY_PATCH=1
     SOURCE_HASH=sha512:fcbc37e98ccc8fba5dfcf24a569d85b786ea8bdf43721c1b8f35c1661367fad7daf578df2b6ba37ffedfd66f4c838d977cbff0b3793ae38eacf8a3e5841d58bf
# check that we have the previous tarball first and if so, enable xdelta
if [[ $WESNOTH_XDELTA == y && -e $SOURCE_CACHE/$SPELL-$OLD_VERSION.tar.bz2 ]]; then
          SOURCE=$SPELL-$OLD_VERSION.tar-$SPELL-$VERSION.tar.xdelta
fi
   SOURCE_URL[0]=http://downloads.sourceforge.net/project/$SPELL/$SPELL-$BRANCH/$SPELL-$VERSION/$SOURCE
   SOURCE_URL[1]=http://www.wesnoth.org/files/$SOURCE
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-${VERSION}"
      LICENSE[0]=GPL
        WEB_SITE=http://www.wesnoth.org/
         ENTERED=20040509
           SHORT="fantasy turn-based strategy game"
cat << EOF
Battle for Wesnoth is a fantasy turn-based strategy game. Battle for control
of villages, using variety of units which have advantages and disadvantages in
different types of terrains and against different types of attacks. Units gain
experience and advance levels, and are carried over from one scenario to the
next.
EOF
