void-packages/srcpkgs/xreader/template
2021-01-28 02:32:52 -03:00

50 lines
1.4 KiB
Bash

# Template file for 'xreader'
pkgname=xreader
version=2.8.3
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir true false) -Dthumbnailer=false"
hostmakedepends="mate-common mathjax"
makedepends="djvulibre-devel libSM-devel libgnomekbd-devel libgxps-devel libsecret-devel
libspectre-devel libxkbfile-devel poppler-glib-devel webkit2gtk-devel xapps-devel
$(vopt_if gir 'gobject-introspection') gdk-pixbuf-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Document viewer capable of displaying formats like PDF and Postscript"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/linuxmint/xreader"
distfiles="https://github.com/linuxmint/xreader/archive/${version}.tar.gz"
checksum=48d624e3844d614ea5c6a4c97220e31411800dee8a55f394add0871b0573b3cb
build_options="gir"
build_options_default="gir"
do_check() {
# XX dogtail is needed for testing (not in repo)
# XX tests need xorg running
:
}
libxreader_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
libxreader-devel_package() {
depends="libxreader>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}