void-packages/srcpkgs/xreader/template

49 lines
1.5 KiB
Bash

# Template file for 'xreader'
pkgname=xreader
version=4.2.3
revision=2
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir true false) -Dthumbnailer=false"
hostmakedepends="mathjax2 pkg-config intltool itstool texlive-bin glib-devel"
makedepends="djvulibre-devel libSM-devel libgxps-devel libsecret-devel
libspectre-devel poppler-glib-devel libwebkit2gtk41-devel xapps-devel
gdk-pixbuf-devel cairo-devel atk-devel libglib-devel gtk+3-devel
libxml2-devel tiff-devel zlib-devel pango-devel"
depends="desktop-file-utils hicolor-icon-theme mathjax2"
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=57d8c20eddcb90ba768f386c444519b5f330c1aacfcaa3deb33db1ad1d7bbd6d
# XX dogtail is needed for testing (not in repo)
# XX tests need xorg running
make_check=no
build_options="gir"
build_options_default="gir"
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
}
}