if [[ $MARIADB_BRANCH == 5.5 ]] || [[ $MARIADB_BRANCH == 10.1 ]]; then
  cmake_install
else
  make benchdir_root="${TRACK_ROOT}/usr/share/mysql" \
       testroot="${TRACK_ROOT}/usr/share/mysql" \
       install &&

  if [[ $MARIA_TESTS == n ]]; then
    rm -rf "${INSTALL_ROOT}/usr/share/mysql/mysql-test"
  fi &&

  if [[ $MARIA_BENCH == n ]]; then
    rm -rf "${INSTALL_ROOT}/usr/share/mysql/sql-bench"
  fi
fi &&

if [[ $INIT_INSTALLED ]]; then
  install_config_file "$SPELL_DIRECTORY/init.d/mariadb.conf" \
                      "$INSTALL_ROOT/etc/sysconfig/mariadb"
fi
