# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libksane pkgver=19.12.2 pkgrel=0 arch="all !armhf" # armhf blocked by extra-cmake-modules 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="a073cb214cfa84e93091db86c1791647840f7f2d8794e2bc28ab6bac69d1b6d354a4bef85efe557653c54dd40cb15603fb9404799085de544cbe66114de71c33 libksane-19.12.2.tar.xz"