void-packages/srcpkgs/evince/template
2020-07-06 20:23:08 +02:00

49 lines
1.5 KiB
Bash

# Template file for 'evince'
pkgname=evince
version=3.36.7
revision=1
build_helper="gir"
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection) --disable-schemas-compile
--enable-comics --disable-static --enable-xps --disable-t1lib
--disable-browser-plugin --enable-ps"
hostmakedepends="adwaita-icon-theme gettext glib-devel gnome-doc-utils
itstool pkg-config perl-XML-Parser appstream-glib"
# XXX missing packages for DVI backend.
makedepends="adwaita-icon-theme djvulibre-devel gnome-desktop-devel libSM-devel
libgxps-devel libsecret-devel libspectre-devel nautilus-devel
poppler-glib-devel gspell-devel gst-plugins-base1-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="GNOME Document viewer for multiple document formats"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Apps/Evince"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=65d61a423e3fbbe07001f65e87422dfb7d2e42b9edf0ca6a1d427af9a04b8f32
build_options="gir"
build_options_default="gir"
libevince_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
evince-devel_package() {
depends="gtk+3-devel libevince>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}