# Template file for 'libgexiv2-0.16'
pkgname=libgexiv2-0.16
version=0.16.0
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir introspection) $(vopt_bool vala vapi)"
hostmakedepends="pkg-config glib-devel $(vopt_if vala 'vala') python3-gobject"
makedepends="libglib-devel exiv2-devel"
short_desc="GObject-based wrapper around the Exiv2 library"
maintainer="oreo639 <oreo6391@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/gexiv2"
changelog="https://gitlab.gnome.org/GNOME/gexiv2/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/gexiv2/${version%.*}/gexiv2-${version}.tar.xz"
checksum=d96f895f24539f966f577b2bb2489ae84f8232970a8d0c064e4a007474a77bbb

build_options="gir vala"
build_options_default="gir vala"

libgexiv2-0.16-devel_package() {
	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		if [ "$build_option_vala" ]; then
			vmove usr/share/vala
		fi
		if [ "$build_option_gir" ]; then
			vmove "usr/share/gir-*"
		fi
	}
}
