38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'okular'
|
|
pkgname=okular
|
|
version=18.04.3
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules pkg-config"
|
|
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"
|
|
short_desc="KDE Document Viewer"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://kde.org/applications/graphics/okular/"
|
|
distfiles="${KDE_SITE}/applications/${version}/src/${pkgname}-${version}.tar.xz"
|
|
checksum=c51d6d4b007144a567f8a86b7b31409001f668b0b41d44fcd6e2e5c5f9c2554a
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-qmake qt5-host-tools kdoctools kconfig"
|
|
fi
|
|
|
|
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"
|
|
}
|
|
}
|