void-packages/srcpkgs/okular/template

53 lines
2.1 KiB
Bash

# Template file for 'okular'
pkgname=okular
version=24.08.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF -DKF6_HOST_TOOLING=/usr/lib/cmake
-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules pkg-config qt6-base gettext
kf6-kcoreaddons kf6-kdoctools kf6-kconfig python3"
makedepends="discount-devel djvulibre-devel ebook-tools-devel phonon-devel
libchmlib-devel libkexiv2-devel poppler-qt6-devel libspectre-devel
libqmobipocket6-devel libzip-devel libkexiv2-devel qca-qt6-devel
qt6-speech-devel kf6-purpose-devel kf6-kbookmarks-devel
kf6-kcompletion-devel kf6-kconfig-devel qt6-base-private-devel
kf6-kconfigwidgets-devel kf6-kcoreaddons-devel kf6-kcrash-devel
kf6-kdoctools-devel kf6-kiconthemes-devel kf6-kio-devel kf6-kirigami-devel
kf6-kparts-devel kf6-kpty-devel kf6-kwallet-devel kf6-kwindowsystem-devel
kf6-threadweaver-devel kf6-ktextwidgets-devel plasma-activities-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=3de16e26294b3863270df1760403a676ba3d7204738bebce8a05562d932c318b
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"
}
}