aboutsummaryrefslogtreecommitdiff
path: root/gspell/Pkgfile
blob: da92d3b96d26f2580d3c43795fa6747f703a6a7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.2
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}

}