2025-02-11 05:23:25 -08:00

49 lines
1.4 KiB
Bash

# Template file for 'gspell'
pkgname=gspell
version=1.14.0
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir gobject_introspection)
$(vopt_bool vala vapi) $(vopt_bool gtk_doc gtk_doc)"
hostmakedepends="pkg-config glib-devel gettext
$(vopt_if vala vala) $(vopt_if gtk_doc gtk-doc)"
makedepends="glib-devel enchant2-devel gtk+3-devel icu-devel"
checkdepends="xvfb-run cantarell-fonts hunspell-en"
short_desc="Flexible API to add spell checking to a GTK+ application"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://gitlab.gnome.org/GNOME/gspell"
changelog="https://gitlab.gnome.org/GNOME/gspell/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/gspell/${version%.*}/gspell-${version}.tar.xz"
checksum=64ea1d8e9edc1c25b45a920e80daf67559d1866ffcd7f8432fecfea6d0fe8897
make_check_pre="xvfb-run"
# Package build options
build_options="gir vala gtk_doc"
build_options_default="gir vala"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
gspell-devel_package() {
depends="libglib-devel enchant2-devel gtk+3-devel icu-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
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
}
}