aboutsummaryrefslogtreecommitdiff
path: root/gspell/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'gspell/Pkgfile')
-rw-r--r--gspell/Pkgfile34
1 files changed, 34 insertions, 0 deletions
diff --git a/gspell/Pkgfile b/gspell/Pkgfile
new file mode 100644
index 0000000..4de33cc
--- /dev/null
+++ b/gspell/Pkgfile
@@ -0,0 +1,34 @@
+# 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}
+
+}