# Template file for 'eog'
pkgname=eog
version=50.0
revision=1
build_helper="gir"
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="pkg-config gettext glib-devel itstool gtk-update-icon-cache"
makedepends="exempi-devel gnome-desktop-devel libexif-devel libpeas-devel
 librsvg-devel lcms2-devel libportal-gtk3-devel libhandy1-devel"
depends="desktop-file-utils hicolor-icon-theme shared-mime-info"
short_desc="Eye of GNOME graphics viewer program"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/eog/"
changelog="https://gitlab.gnome.org/GNOME/eog/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/eog/${version%.*}/eog-${version}.tar.xz"
checksum=5c0226d10cfa13569ade2218f03ce62f79b8dc5c288e2e0b123d2ef51abdcb07
shlib_provides="libeog.so"
lib32disabled=yes

build_options="gir"
build_options_default="gir"

eog-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} gtk+3-devel libhandy1-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		if [ "$build_option_gir" ]; then
			vmove usr/share/eog/gir-1.0
		fi
	}
}
