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

306.15. converseen-0.15.2.8

Batch image converter and resizer over ImageMagick, for Qt 6

Version 0.15.2.8, release 1
Shelf graphics — Graphics applications: painting, vector, photo development and management, image viewers, screenshot and image optimisers
Phase 44_apps (Applications), 235 of 422 in build order
Licence GPL-3.0-or-later
Homepage https://converseen.fasterland.net/
Build time 6.4 SBU
Installed size 866.5 KiB in 12 files
Recipe ports/core/graphics/converseen/kpkgbuild

About

Converseen is a batch image converter: it converts, resizes, rotates, flips and renames many images in one pass, through imagemagick’s Magick++ interface. It is built against Qt 6.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, qt6-qtbase, qt6-qttools, imagemagick, hicolor-icon-theme.

Required by: no port names it.

Patches

build.sh applies these; kpkg applies nothing by itself.

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 converseen'

What kpkg does

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

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/graphics/converseen
echo 'bb29870f5d69aa8decb462aba67365f84cccda45a3a5225d8d3638979bc2b8bf  converseen-0.15.2.8.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/converseen
SRC=$SRC_ROOT/converseen-0.15.2.8
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf converseen-0.15.2.8.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:

patch -p1 -i "$PORT_SRC/no-update-check.patch"
patch -p1 -i "$PORT_SRC/imagemagick-flags.patch"

export CXXFLAGS="$CXXFLAGS $(pkg-config --cflags-only-other Magick++)"

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D USE_QT6=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

rm -rf "$PKG/usr/share/converseen/loc"

cat > "$PKG/usr/share/applications/net.fasterland.converseen.desktop" <<'EOF'
[Desktop Entry]
Type=Application
Name=Converseen
GenericName=Batch Image Converter
Comment=Convert, resize, rotate and rename many images at once
Exec=converseen %F
Icon=converseen
Terminal=false
StartupWMClass=net.fasterland.converseen
Categories=Qt;Graphics;2DGraphics;RasterGraphics;
Keywords=image;convert;resize;batch;rename;rotate;
EOF
chmod 644 "$PKG/usr/share/applications/net.fasterland.converseen.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/converseen, 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 converseen-0.15.2.8-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/converseen, and runs the triggers its paths call for.

Contents

Installed programs: converseen.

Installed directories: /usr/share/converseen, /usr/share/licenses/converseen.

Notes

build.sh removes /usr/share/converseen/loc, the program’s own translation directory. The program shows its English source strings.

The desktop entry is written over upstream’s with StartupWMClass=net.fasterland.converseen, the Wayland app id setDesktopFileName sets, so the panel can tie the window to its launcher.