# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kimageformats pkgver=5.64.0 pkgrel=0 pkgdesc="Image format plugins for Qt5" arch="all" url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later" makedepends="qt5-qtbase-dev karchive-dev extra-cmake-modules openexr-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kimageformats-$pkgver.tar.xz" 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 xvfb-run ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="64bd790224553b5ea7b600d8007a0fe6e833a1bd991df78b92325962d7f4a62a74d55138c27b683bfec23f4f4e840173a6e4cd2bfb6035c3d36f5b6f84307890 kimageformats-5.64.0.tar.xz"