Running DeltaTouch on Arch Linux

DeltaTouch can be run natively on Arch Linux. Here are some notes on how to build and run it without proper packaging.

DeltaTouch depends on lomiri-ui-toolkit, which needs to be installed from AUR first: AUR (en) - lomiri-ui-toolkit
This in turn depends on another dependency not officially packaged, qt5-pim, which can be installed from AUR (en) - qt5-pim-git

Building DeltaTouch also requires installing AUR (en) - quirc

You also need to build libdeltachat.so, I assume it is available at /path/to/libdeltachat.so.

After installing the dependencies, I checked out the commit Making sure you're not a bot!

#!/bin/sh
set -eu

sed -i 's/VERSION 3.0.0/VERSION 4.0.0/' CMakeLists.txt

cmake -B build

mkdir -p build/plugins/DeltaHandler/
mkdir -p build/plugins/XdcPickerEngineProfile/

cp /usr/lib/libquirc.so build/plugins/DeltaHandler/libquirc.so.1.2

for plugin in DeltaHandler XdcPickerEngineProfile HtmlMsgEngineProfile WebxdcEngineProfile; do
        cp /path/to/libdeltachat.so "build/plugins/$plugin/"
        cp plugins/$plugin/qmldir build/plugins/$plugin/$plugin/
done

# Build
cmake --build build

Then run it with this script in the source dir:

#!/bin/sh
export QML2_IMPORT_PATH="$PWD/build/plugins/DeltaHandler/:$PWD/build/plugins/XdcPickerEngineProfile/"
build/deltatouch
2 Likes

Now when checking out commit 73f0e72d763de4af2d8f0f91ff86d3ce39dfe6b3 with PR #34 - Import libdeltachat and libquirc without copying them into the bulid tree - lk108/deltatouch - Codeberg.org merged it is enough to run this:

cmake -B build -D CMAKE_INSTALL_PREFIX=/usr
cmake --build build
DESTDIR="$PWD/pkg" cmake --install build/

export QML2_IMPORT_PATH="$PWD/pkg/lib/"
pkg/usr/deltatouch
2 Likes

DeltaTouch is available in AUR now:
https://aur.archlinux.org/packages/deltatouch-git

1 Like