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
converseen-0.15.2.8.tar.gz(982.8 KiB)
sha256bb29870f5d69aa8decb462aba67365f84cccda45a3a5225d8d3638979bc2b8bf
upstream: https://github.com/Faster3ck/Converseen/archive/refs/tags/v0.15.2.8.tar.gz
archive copy: sources-2/graphics--converseen-0.15.2.8.tar.gz
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.
imagemagick-flags.patch— Delete the-DMAGICKCORE_HDRI_ENABLE=0and-DMAGICKCORE_QUANTUM_DEPTH=16definitions fromCMakeLists.txt. They describe a non-HDRI, 16-bit build whatever ImageMagick was configured as, and against an HDRI build everyQuantumis the wrong type.no-update-check.patch— Insrc/mainwindowimpl.cpp, replace the start-up call tocheckForUpdates()with hiding the Check for Updates menu entry. Converseen otherwise asks its server for the latest version at every start, and no setting stops the request.
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:
-D USE_QT6=ON— Build against Qt 6. Upstream’s default is Qt 5.CXXFLAGS="$CXXFLAGS $(pkg-config --cflags-only-other Magick++)"— Take Magick++’s preprocessor definitions, among themMAGICKCORE_HDRI_ENABLEandMAGICKCORE_QUANTUM_DEPTH, from the installedMagick++.pc. Magick++’s headers size everyQuantumfrom those two, so they must match the library: a mismatch compiles and then reads every pixel as the wrong type.imagemagick-flags.patchdeletes the values upstream hard-codes, so these are the only ones.
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.