# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkdcraw pkgver=19.12.2 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" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="e1a214ef95040760537346bf26560f02d3cfb1904f539d9ad9122175972c577115e5bd5f4a6723ce7f0cac758bb2d922acbe9f00af9b25b23741f278067335f6 libkdcraw-19.12.2.tar.xz"