1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| PWD_DIR=/home/work/kde/calligra/build
INST_DIR=$PWD_DIR/installed
export XDG_DATA_DIRS=$INST_DIR/share:$XDG_DATA_DIRS
export XDG_CONFIG_DIRS=$INST_DIR/etc/xdg:$XDG_CONFIG_DIRS
export PATH=$INST_DIR/bin:$PATH
export QT_PLUGIN_PATH=$INST_DIR/lib64/plugins:$INST_DIR/lib/plugins:$INST_DIR/lib/x86_64-linux-gnu/plugins:$QT_PLUGIN_PATH
export QML_IMPORT_PATH=$INST_DIR/lib64/qml:$INST_DIR/lib/qml:$INST_DIR/lib/x86_64-linux-gnu/qml
export QML2_IMPORT_PATH=$INST_DIR/lib64/qml:$INST_DIR/lib/qml:$INST_DIR/lib/x86_64-linux-gnu/qml
export XDG_CONFIG_HOME=$HOME/kde/Settings
export KDETMP=/tmp/kdedev-$USER
export KDEVARTMP=/var/tmp/kdedev-$USER
export KDESYCOCA=$KDEVARTMP/ksycoca
mkdir -p $KDETMP
mkdir -p $KDEVARTMP |
PWD_DIR=/home/work/kde/calligra/build
INST_DIR=$PWD_DIR/installed
export XDG_DATA_DIRS=$INST_DIR/share:$XDG_DATA_DIRS
export XDG_CONFIG_DIRS=$INST_DIR/etc/xdg:$XDG_CONFIG_DIRS
export PATH=$INST_DIR/bin:$PATH
export QT_PLUGIN_PATH=$INST_DIR/lib64/plugins:$INST_DIR/lib/plugins:$INST_DIR/lib/x86_64-linux-gnu/plugins:$QT_PLUGIN_PATH
export QML_IMPORT_PATH=$INST_DIR/lib64/qml:$INST_DIR/lib/qml:$INST_DIR/lib/x86_64-linux-gnu/qml
export QML2_IMPORT_PATH=$INST_DIR/lib64/qml:$INST_DIR/lib/qml:$INST_DIR/lib/x86_64-linux-gnu/qml
export XDG_CONFIG_HOME=$HOME/kde/Settings
export KDETMP=/tmp/kdedev-$USER
export KDEVARTMP=/var/tmp/kdedev-$USER
export KDESYCOCA=$KDEVARTMP/ksycoca
mkdir -p $KDETMP
mkdir -p $KDEVARTMP
refer to:
https://community.kde.org/Calligra/Building/3