diff options
Diffstat (limited to 'KDE5_FUNCTIONS')
-rwxr-xr-x | KDE5_FUNCTIONS | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/KDE5_FUNCTIONS b/KDE5_FUNCTIONS new file mode 100755 index 0000000000..af5c72c667 --- /dev/null +++ b/KDE5_FUNCTIONS @@ -0,0 +1,40 @@ +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 +} |