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

306.8. kolourpaint-26.08.2

Paint program — draw, crop, recolour and scan

26.08.2-1 · BSD-2-Clause AND LGPL-2.0-or-later · 3.3 SBU · 2.6 MiB, 168 files · 44_apps, 228 of 422 · ports/core/graphics/kolourpaint

Homepage: https://apps.kde.org/kolourpaint/

KolourPaint is KDE’s simple paint program: freehand and shape tools, selections, text, colour effects, resizing and cropping, and scanning a picture in through libksane. It opens and saves the formats Qt’s image plugins and kimageformats read.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg, qt6-qtimageformats, qt6-qtwayland, ki18n, kguiaddons, kwidgetsaddons, kio, kxmlgui, ktextwidgets, kjobwidgets, kcrash, kdoctools, libksane, kimageformats.

Required by (1): kde-gear-graphics.

Sources: kolourpaint-26.08.2.tar.xz (5.1 MiB). Every step kpkg takes applies to this port.

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

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D BUILD_DOC=ON \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KSaneWidgets6=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

cat > "$PKG/usr/share/applications/org.kde.kolourpaint.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KolourPaint
GenericName=Paint Program
Comment=An easy-to-use paint program
TryExec=kolourpaint
Exec=kolourpaint %u
Icon=kolourpaint
Terminal=false
StartupWMClass=org.kde.kolourpaint
X-DocPath=kolourpaint/index.html
MimeType=application/x-krita;application/x-navi-animation;image/avif;image/bmp;image/gif;image/heif;image/jpeg;image/jxl;image/openraster;image/png;image/svg+xml;image/svg+xml-compressed;image/tiff;image/vnd.adobe.photoshop;image/vnd.microsoft.icon;image/vnd.wap.wbmp;image/webp;image/x-eps;image/x-exr;image/x-hdr;image/x-icns;image/x-mng;image/x-pcx;image/x-pic;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-rgb;image/x-sun-raster;image/x-tga;image/x-xbitmap;image/x-xcf;image/x-xpixmap;
Categories=Qt;KDE;Graphics;2DGraphics;RasterGraphics;
Keywords=paint;draw;drawing;crop;image;picture;kolourpaint;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.kolourpaint.desktop"

Programs: kolourpaint.

Libraries: libkolourpaint_lgpl.so.

Directories: /usr/share/doc/HTML/en/kolourpaint, /usr/share/kolourpaint, /usr/share/licenses/kolourpaint.

The desktop entry is KDOS’s own, written over upstream’s. Its StartupWMClass is org.kde.kolourpaint, the desktop file name KAboutData sets and the window’s Wayland app_id, so the task manager can match the window to its entry. It also lists the image types KolourPaint opens in MimeType=, so it is offered under Open With for them; the default handlers are set in the shipped MIME associations, not here.