summaryrefslogblamecommitdiffstats
path: root/KDE5_FUNCTIONS
blob: f9ab534c269ee5d6dcdc3e4deecc8366efde58bf (plain) (tree)
1
              







































                                                                      
KF5DIR=$QT5DIR
export XDG_DATA_DIRS=$KF5DIR/share:/usr/share

#---------------------------------------------------------------------
function kde5_build() {
  OPTS+=" -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1 -Wno-dev  $CM_TESTS"
  qt5_cmake_build
}


default_build() {
 kde5_build
}

#function default_install() {
# cmake_install
#}


# we need a default_final, default_post_remove
# so that the mime and desktop databases get updated
update_databases() {
local DD
  DD=$KF5DIR
#  update-mime-database takes a long time, so only do it when needed
  if is_depends_enabled $SPELL;then
    update-mime-database $DD/share/mime/
  fi
  if [[ -e $DD/share/desktop-directories ]]; then
    update-desktop-database $DD/share/desktop-directories
  fi
}

default_final() {
  update_databases
}


default_post_remove() {
  update_databases
}