libhandy1: update to 1.2.1, build docs

This commit is contained in:
Paper 2021-04-18 19:55:53 +02:00 committed by Érico Nogueira Rolim
parent 66871099ee
commit 380fafd410

View file

@ -1,14 +1,14 @@
# Template file for 'libhandy1'
pkgname=libhandy1
version=1.2.0
version=1.2.1
revision=1
wrksrc="libhandy-${version}"
build_style=meson
build_helper="gir"
configure_args="-Dexamples=true -Dtests=true
configure_args="-Dexamples=true -Dtests=true $(vopt_bool gtk_doc gtk_doc)
$(vopt_bool gir vapi) -Dglade_catalog=$(vopt_if glade enabled disabled)
-Dintrospection=$(vopt_if gir enabled disabled)"
hostmakedepends="glib-devel pkg-config $(vopt_if gir vala-devel)"
hostmakedepends="glib-devel pkg-config $(vopt_if gtk_doc gtk-doc) $(vopt_if gir vala-devel)"
makedepends="gtk+3-devel libglib-devel $(vopt_if glade glade3-devel)"
checkdepends="xvfb-run"
short_desc="GTK+3 building blocks for modern adaptive applications"
@ -16,12 +16,16 @@ maintainer="Paper <paper@tilde.institute>"
license="LGPL-2.1-or-later"
homepage="https://gitlab.gnome.org/GNOME/libhandy/"
distfiles="${GNOME_SITE}/libhandy/${version%.*}/libhandy-${version}.tar.xz"
checksum=39f590ae20910e76fe1c0607b2ebe589750f45610d6aeec5c30e2ee602a20b25
checksum=411b4c6a4d5f9ed5e46594b4abb04c54af294e3242cf364942029f5e0b6f510b
build_options="gir glade"
build_options="gir glade gtk_doc"
desc_option_glade="Generate glade modules and catalog files"
build_options_default="gir glade"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
do_check() {
xvfb-run ninja -C build test
}
@ -41,6 +45,9 @@ libhandy1-devel_package() {
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
}
}