void-packages/srcpkgs/evince/template
2020-10-09 19:24:22 +07:00

55 lines
1.6 KiB
Bash

# Template file for 'evince'
pkgname=evince
version=3.38.0
revision=1
build_helper="gir"
build_style=meson
configure_args="$(vopt_bool gir introspection) $(vopt_bool gtk_doc gtk_doc)
-Dcomics=enabled -Dps=enabled -Dxps=enabled -Ddvi=disabled
-Dt1lib=disabled -Dbrowser_plugin=false"
hostmakedepends="adwaita-icon-theme gettext gtk-doc glib-devel
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=26df897a417545b476d2606b14731122e84278ae994bd64ea535449c3cf01948
build_options="gir gtk_doc"
build_options_default="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
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"
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}