blob: 83b7a3577c96c03d1e931c1e99d00dac4796113d (
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
|
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"
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
}
|