# Template file for 'libgedit-gfls'
pkgname=libgedit-gfls
version=0.2.1
revision=1
build_style=meson
build_helper=gir
configure_args="$(vopt_bool gir gobject_introspection) $(vopt_bool gtk_doc gtk_doc)"
hostmakedepends="gettext glib-devel pkg-config $(vopt_if gtk_doc gtk-doc)"
makedepends="gtk+3-devel"
short_desc="Module dedicated to file loading and saving"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/gedit/libgedit-gfls"
changelog="https://gitlab.gnome.org/World/gedit/libgedit-gfls/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/libgedit-gfls/${version%.*}/libgedit-gfls-${version}.tar.xz"
checksum=b3c8e07facb4d0c444648a934ff5236d22b74154556235b90aa7828ba4816e1d

build_options="gir gtk_doc"
build_options_default="gir"

if [ -z "$CROSS_BUILD" ]; then
	build_options_default+=" gtk_doc"
fi

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