summaryrefslogtreecommitdiffstats
path: root/KDE5_FUNCTIONS
blob: 302b4c6f9988433e477e1177c1a8f2d0432bd24e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

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
}