# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkdcraw pkgver=20.04.0 pkgrel=0 arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://kde.org" pkgdesc="RAW image file format support for KDE" license="GPL-2.0-or-later AND LGPL-2.0-or-later" depends_dev="qt5-qtbase-dev libraw-dev" makedepends="$depends_dev extra-cmake-modules" source="https://download.kde.org/stable/release-service/$pkgver/src/libkdcraw-$pkgver.tar.xz" subpackages="$pkgname-dev" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make -C build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="c099f5e3798b23eb0a5caabbbfc35a313fdb2885e5968f108510f00fd938a57db3626b2442c3ab381b05794db161840532c9da962d38baedf98ca808628319f9 libkdcraw-20.04.0.tar.xz"