default_pre_build &&
cd "$SOURCE_DIRECTORY" &&

# Version 1.3.1 needs this patch, git not anymore.
[[ $FLUXBOX_GIT == y ]] || patch -p0 < "$SPELL_DIRECTORY/size_t.patch" &&

if is_depends_enabled $SPELL fribidi && [[ $(installed_version fribidi) < 0.19 ]]; then
  patch -p0 < "$SPELL_DIRECTORY/fribidi.patch" &&
  autoreconf -i
fi
