# Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=libkipi pkgver=18.04.3 pkgrel=0 pkgdesc="KDE Image Plugin Interface library" url="https://www.digikam.org/" arch="all" options="!check" # Tests fail to compile. license="GPL-2.0+ AND LGPL-2.0+" depends="" depends_dev="qt5-qtbase-dev kxmlgui-dev kservice-dev" makedepends="$depends_dev cmake extra-cmake-modules kconfig-dev" subpackages="$pkgname-dev" source="https://download.kde.org/stable/applications/$pkgver/src/libkipi-$pkgver.tar.xz" build() { cd "$builddir" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DBUILD_TESTING=OFF \ ${CMAKE_CROSSOPTS} make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="3fa2fe8bbc5158bb1b06812ba708ce11feacacee9c9e39030bf4ef570177a8ff13962c02fddf33a6253f8db5d60805c2e1a65fc6264c7ca5d62e81abe3b44523 libkipi-18.04.3.tar.xz"