# Description: A GTK spell check library # URL: https://gitlab.gnome.org/GNOME/gspell # Maintainer: Jay Lanagan, j at lngn dot net # Depends on: enchant gtk3 icu # Optional: hunspell gobject-introspection vala gtk-doc name=gspell version=1.14.0 release=1 source=(https://download.gnome.org/sources/$name/1.14/$name-$version.tar.xz) build() { prt-get isinst vala && PKGMK_GSPELL+='-D vapi=true ' || PKGMK_GSPELL+=' -D vapi=false ' prt-get isinst gtk-doc && PKGMK_GSPELL+='-D gtk_doc=true ' || PKGMK_GSPELL+=' -D gtk_doc=false ' prt-get isinst gobject-introspection && PKGMK_GSPELL+='-D gobject_introspection=true ' || PKGMK_GSPELL+=' -D gobject_introspection=false ' meson setup $name-$version build $PKGMK_GSPELL \ --prefix=/usr \ --libexecdir=/usr/lib \ --sysconfdir=/etc \ --buildtype=plain \ -D tests=false \ -D install_tests=false \ -D gspell_app=false \ -D b_lto=true \ -D b_pie=true meson compile -C build DESTDIR=$PKG meson install -C build rm -r $PKG/usr/share/{gtk-doc,locale} }