61 lines
1.9 KiB
Bash
61 lines
1.9 KiB
Bash
# Template file for 'evince'
|
|
pkgname=evince
|
|
version=44.0
|
|
revision=1
|
|
build_helper="gir"
|
|
build_style=meson
|
|
configure_args="$(vopt_bool gir introspection) $(vopt_bool gtk_doc gtk_doc)
|
|
-Dcomics=enabled -Ddjvu=enabled -Dps=enabled -Dxps=enabled -Ddvi=disabled -Dpdf=enabled
|
|
-Dnautilus=false"
|
|
hostmakedepends="adwaita-icon-theme gettext $(vopt_if gtk_doc gi-docgen)
|
|
glib-devel itstool pkg-config perl-XML-Parser appstream-glib desktop-file-utils"
|
|
# XXX missing packages for DVI backend.
|
|
makedepends="adwaita-icon-theme djvulibre-devel gnome-desktop-devel libSM-devel
|
|
libgxps-devel libsecret-devel libspectre-devel
|
|
poppler-glib-devel gspell-devel gst-plugins-base1-devel libhandy1-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="GNOME Document viewer for multiple document formats"
|
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://wiki.gnome.org/Apps/Evince"
|
|
#changelog="https://gitlab.gnome.org/GNOME/evince/-/raw/main/NEWS"
|
|
changelog="https://gitlab.gnome.org/GNOME/evince/-/raw/gnome-44/NEWS"
|
|
distfiles="${GNOME_SITE}/evince/${version%.*}/evince-${version}.tar.xz"
|
|
checksum=339ee9e005dd7823a13fe21c71c2ec6d2c4cb74548026e4741eee7b2703e09da
|
|
|
|
build_options="gir gtk_doc"
|
|
build_options_default="gir gtk_doc"
|
|
|
|
pre_build() {
|
|
# help gi-docgen find gi files on cross
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
export XDG_DATA_DIRS=/usr/$XBPS_CROSS_TRIPLET/usr/share/
|
|
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 libglib-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/doc
|
|
fi
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|