# Template file for 'libgee08'
pkgname=libgee08
version=0.20.5
revision=1
wrksrc="libgee-${version}"
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static"
hostmakedepends="pkg-config $(vopt_if vala 'vala')"
makedepends="glib-devel"
short_desc="GObject collection library (0.8.x API)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Libgee"
changelog="https://gitlab.gnome.org/GNOME/libgee/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/libgee/${version%.*}/libgee-${version}.tar.xz"
checksum=31863a8957d5a727f9067495cabf0a0889fa5d3d44626e54094331188d5c1518

# Package build options
build_options="gir vala"
build_options_default="gir vala"

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