summaryrefslogblamecommitdiffstats
path: root/KDE5_FUNCTIONS
blob: 302b4c6f9988433e477e1177c1a8f2d0432bd24e (plain) (tree)
1
2
3
4
5
6
7
8
9

                               


                                                                      



                                           







                 


                            







                                                                    
                                                    














                                                         
KF5DIR="$INSTALL_ROOT/usr"
export XDG_DATA_DIRS=/usr/share

#---------------------------------------------------------------------
function kde5_build() {
  CXXFLAGS+=' -Wno-deprecated-declarations'
  OPTS+=" -DLIB_INSTALL_DIR=lib"
  OPTS+=" -Wno-dev $CM_TESTS"
  OPTS+=" -DKDE_SKIP_UNINSTALL_TARGET=1"
  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 shared-mime-info;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
}