46 lines
1.6 KiB
Bash
46 lines
1.6 KiB
Bash
# Template file for 'okular'
|
|
pkgname=okular
|
|
version=23.08.5
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules pkg-config gettext kcoreaddons
|
|
qt5-qmake qt5-host-tools kdoctools kconfig"
|
|
makedepends="discount-devel djvulibre-devel ebook-tools-devel khtml-devel
|
|
kpty-devel libchmlib-devel libkexiv25-devel libqmobipocket-devel
|
|
libspectre-devel libzip-devel plasma-framework-devel poppler-qt5-devel
|
|
purpose-devel qca-qt5-devel qt5-speech-devel threadweaver-devel"
|
|
depends="hicolor-icon-theme"
|
|
checkdepends="ebook-tools dbus"
|
|
short_desc="KDE Document Viewer"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://kde.org/applications/en/graphics/org.kde.okular"
|
|
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
|
|
checksum=d5d51f69b176a250907ee70e8f97143fc9d705cee3ef7ff448626c8a529ce364
|
|
|
|
do_check() {
|
|
cd build
|
|
# disable failing tests
|
|
ctest -E "kimgiotest|chmgeneratortest|epubgeneratortest|parttest|visibilitytest| \
|
|
jsfunctionstest|formattest|keystroketest|signunsignedfieldtest|documenttest|searchtest|annotationstest| \
|
|
editannotationcontentstest|addremoveannotationtest|translateannotationtest|modifyannotationpropertiestest| \
|
|
editformstest|calculatetexttest|mainshelltest|annotationtoolbartest|signatureformtest|jsfunctionstest|editannotationcontentstest|editformstest"
|
|
}
|
|
|
|
libokular_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libokular-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|