void-packages/srcpkgs/libhandy1/template

55 lines
1.7 KiB
Bash

# Template file for 'libhandy1'
pkgname=libhandy1
version=1.8.2
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dexamples=true -Dtests=true $(vopt_bool gtk_doc gtk_doc)
$(vopt_bool gir vapi) $(vopt_feature glade glade_catalog)
$(vopt_feature gir introspection)"
hostmakedepends="glib-devel pkg-config gettext $(vopt_if gtk_doc gi-docgen) $(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"
maintainer="Michal Vasilek <michal@vasilek.cz>"
license="LGPL-2.1-or-later"
homepage="https://gitlab.gnome.org/GNOME/libhandy/"
#changelog="https://gitlab.gnome.org/GNOME/libhandy/-/raw/main/NEWS"
changelog="https://gitlab.gnome.org/GNOME/libhandy/-/raw/libhandy-1-8/NEWS"
distfiles="${GNOME_SITE}/libhandy/${version%.*}/libhandy-${version}.tar.xz"
checksum=d11aa2cd3e570ac6d0efdba46d173147c11f45826457e924c05990bb2e0df9ad
make_check_pre="xvfb-run"
build_options="gir glade gtk_doc"
desc_option_glade="Generate glade modules and catalog files"
build_options_default="gir glade gtk_doc"
libhandy1-devel_package() {
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_glade" ]; then
vmove usr/lib/glade
vmove usr/share/glade
fi
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/doc
fi
}
}
libhandy1-demo_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - demonstration application"
pkg_install() {
vmove usr/bin/handy-1-demo
}
}