void-packages/srcpkgs/eog/template
2019-03-11 21:19:13 -03:00

39 lines
1.2 KiB
Bash

# Template file for 'eog'
pkgname=eog
version=3.32.0
revision=1
build_helper="gir"
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="glib-devel itstool pkg-config"
makedepends="exempi-devel gnome-desktop-devel libexif-devel libpeas-devel
librsvg-devel"
depends="desktop-file-utils hicolor-icon-theme shared-mime-info"
short_desc="Eye of GNOME graphics viewer program"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Apps/EyeOfGnome"
distfiles="${GNOME_SITE}/eog/${version%.*}/eog-${version}.tar.xz"
checksum=ff0430e7baf88cd6dc7eb4ccd0f38d3ef4557db9be19c513f70109120196ac00
shlib_provides="libeog.so"
lib32disabled=yes
nocross="Can not use target eog as a generator because it is cross-built"
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
eog-devel_package() {
depends="${sourcepkg}-${version}_${revision} gtk+3-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
}
}