# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libksane pkgver=19.12.0 pkgrel=0 arch="all" url="https://www.kde.org/applications/graphics/" pkgdesc="An image scanning library" license="LGPL-2.1-only OR LGPL-3.0-only" makedepends="extra-cmake-modules qt5-qtbase-dev ki18n-dev kwidgetsaddons-dev ktextwidgets-dev kwallet-dev sane-dev" source="https://download.kde.org/stable/release-service/$pkgver/src/libksane-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" 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="18733ead017660af4741967941df9ff9188b8ad2bee5d15a29b7f452cbd68a94f09ce20e4cc69e7ef993054689a975342b2739cdb49a5118a2078b7148ed5de8 libksane-19.12.0.tar.xz"