cd ${SOURCE_DIRECTORY} &&

install -v build/${SPELL} -D ${INSTALL_ROOT}/usr/bin/${SPELL} &&
install -v share/${SPELL}.desktop -D ${INSTALL_ROOT}/usr/share/applications/${SPELL}.desktop &&
install -v icons/${SPELL}_64.png -D ${INSTALL_ROOT}/usr/share/icons/hicolor/64x64/apps/${SPELL}.png &&
install -v icons/${SPELL}.xpm -D ${INSTALL_ROOT}/usr/share/pixmaps/${SPELL}.xpm &&


if ! list_find "$QUTIM_PLUGINS" "none"
then
  mkdir -p ${INSTALL_ROOT}/usr/lib/${SPELL} &&
  install -v $(find plugins -type f -executable -iname "*.so") ${INSTALL_ROOT}/usr/lib/${SPELL}
fi &&

for l in "bg_BG cs_CZ de_DE ru uk_UA"; do
  install -v ${SOURCE_DIRECTORY}/languages/${l}/binaries -d ${INSTALL_ROOT}/usr/share/${SPELL}/languages/${l}
done
