summaryrefslogtreecommitdiffstats
path: root/KDE5_FUNCTIONS
blob: e612c84a7f21b504ae555de250e884395cabfc13 (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
default_build() {
  CXXFLAGS+=' -Wno-deprecated-declarations'
#  OPTS+=" -Wno-dev"
  OPTS+=" $CM_TESTS"
  OPTS+=" -DKDE_SKIP_UNINSTALL_TARGET=1"
  if is_depends_enabled $SPELL qt6base;then
    OPTS+=" -DCMAKE_PREFIX_PATH=/opt/qt6"
    OPTS+=" -DBUILD_WITH_QT6=ON"
    OPTS+=" -DUSE_QT6=ON"
    OPTS+=" -DEXCLUDE_DEPRECATED_BEFORE_AND_AT=5.91.0"
    OPTS+=" -DQT_MAJOR_VERSION=6"
  fi
cmake_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=$INSTALL_ROOT/usr
  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
}