Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

302.3. dino-0.5.1

XMPP chat (GTK 4, libadwaita) with OMEMO and OpenPGP encryption, file transfer, and voice and video calls

Version 0.5.1, release 1
Shelf chat — Instant messaging, IRC, XMPP, Matrix, fediverse and voice clients, with their protocol and E2E libraries
Phase 44_apps (Applications), 30 of 422 in build order
Licence GPL-3.0-or-later
Homepage https://dino.im/
Build time 4.4 SBU
Installed size 8.2 MiB in 45 files
Recipe ports/core/chat/dino/kpkgbuild

About

Dino is an XMPP (Jabber) chat client for GTK 4 and libadwaita, written in Vala: one-to-one and group chats, file transfer, end-to-end encryption with OMEMO or OpenPGP, and voice and video calls. Most of those features are plugins in /usr/lib/dino/plugins, and the build switches below decide which of them exist.

Sources

Dependencies

Depends on: meson, ninja, pkgconf, vala, glib, gtk4, libadwaita, libgee, gdk-pixbuf, icu, sqlite, gnutls, libgcrypt, libsrtp, libnice, libomemo-c, qrencode, gpgme, libsoup3, libcanberra, gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, webrtc-audio-processing, glib-networking, librsvg, hicolor-icon-theme.

Required by: no port names it.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install dino'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/chat/dino.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/chat/dino
echo '0b265ee3551dcddad5b62e188bdcab2cbb61a0d6a7e72107b2518a156b3ed665  dino-0.5.1.tar.gz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/dino
SRC=$SRC_ROOT/dino-0.5.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf dino-0.5.1.tar.gz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

meson setup build --prefix=/usr --libdir=lib \
	--buildtype=release \
	--wrap-mode=nodownload \
	-Dset-install-rpath=false \
	-Dplugin-http-files=enabled \
	-Dplugin-ice=enabled \
	-Dplugin-omemo=enabled \
	-Dplugin-openpgp=enabled \
	-Dplugin-rtp=enabled \
	-Dplugin-rtp-webrtc-audio-processing=enabled \
	-Dplugin-rtp-vp9=enabled \
	-Dplugin-rtp-h264=disabled \
	-Dplugin-rtp-msdk=disabled \
	-Dplugin-rtp-vaapi=disabled \
	-Dplugin-notification-sound=enabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

for s in 48 64 128 256; do
	install -d "$PKG/usr/share/icons/hicolor/${s}x$s/apps"
	rsvg-convert -w $s -h $s main/data/icons/scalable/apps/im.dino.Dino.svg \
		-o "$PKG/usr/share/icons/hicolor/${s}x$s/apps/im.dino.Dino.png"
done

cat > "$PKG/usr/share/applications/im.dino.Dino.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Dino
GenericName=XMPP Client
Comment=Chat, share files and call over XMPP
Exec=dino %U
Icon=im.dino.Dino
Terminal=false
StartupWMClass=im.dino.Dino
MimeType=x-scheme-handler/xmpp;
Categories=GTK;Network;Chat;InstantMessaging;
Keywords=chat;talk;im;message;xmpp;jabber;omemo;call;
DESKTOP
chmod 644 "$PKG/usr/share/applications/im.dino.Dino.desktop"

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/dino, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf dino-0.5.1-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/dino, and runs the triggers its paths call for.

Contents

Installed programs: dino.

Installed libraries: libcrypto-vala.so, libdino.so, libqlite.so, libxmpp-vala.so.

Installed directories: /usr/lib/dino, /usr/share/licenses/dino.

Notes

The VP9, H.264, Media SDK and VA-API switches only compile in a codec and the names of the GStreamer elements that handle it; the elements themselves come from the GStreamer plugin ports at run time, and Dino checks each one (is_element_supported in plugins/rtp/src/codec_util.vala) before it offers the codec.

build.sh renders the scalable icon to PNGs at four sizes with rsvg-convert and writes its own im.dino.Dino.desktop over the one upstream installs; like upstream’s, it registers Dino for xmpp: links.