void-packages/srcpkgs/xreader/template

51 lines
1.4 KiB
Bash

# Template file for 'xreader'
pkgname=xreader
version=2.0.2
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection) --disable-thumbnailer"
hostmakedepends="mate-common"
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=b79d17d7b4701a2f2d437d1ed7a93b76c617ea093d394ea14aab0a11073aa90c
build_options="gir"
build_options_default="gir"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
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/*.a"
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}