# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=okular pkgver=19.08.0 pkgrel=0 arch="all" url="https://kde.org/applications/office/org.kde.okular" pkgdesc="A universal document viewer" license="GPL-2.0-or-later AND LGPL-2.0-or-later" makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtspeech-dev karchive-dev kbookmarks-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kiconthemes-dev kio-dev kparts-dev threadweaver-dev kwindowsystem-dev kdoctools-dev kjs-dev kwallet-dev kactivities-dev phonon-dev purpose-dev zlib-dev poppler-qt5-dev kirigami2-dev qca-dev kpty-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/applications/$pkgver/src/okular-$pkgver.tar.xz musl-fixes.patch" subpackages="$pkgname-doc $pkgname-lang $pkgname-mobile" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_OKULARKIRIGAMI=ON make } check() { # All other tests are broken, require OpenGL, etc CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -R "^shelltest" } package() { DESTDIR="$pkgdir" make install } mobile() { depends="kirigami2" mkdir -p "$subpkgdir"/usr/bin mkdir -p "$subpkgdir"/usr/share/applications mv "$pkgdir"/usr/bin/okularkirigami "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/share/applications/org.kde.okular.kirigami.desktop "$subpkgdir"/usr/share/applications/ mv "$pkgdir"/usr/share/applications/org.kde.mobile.okular_plucker.desktop "$subpkgdir"/usr/share/applications/ } sha512sums="5abebfa223085c6e89e9e1fbb34f340c6888dfdb0415873d86dd5f7e64a3002cb6ba5a859c95eb1e68fe24b3aa29be49ad333acc4811e9360b3ebaa8f79e6934 okular-19.08.0.tar.xz 41245d4e13603d82047ef8222f212d7f0ac72de4415a8c6409e537249da52a5669e1f3d64b99db376fe384b36abfa6362ccf5686a4f0558837b7b5a8f61530b9 musl-fixes.patch"