aboutsummaryrefslogtreecommitdiffstats
path: root/community/gspell/APKBUILD
blob: a0cbe52ebd80e8089c1f8faf4b143bf66ca284df (plain)
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
35
36
37
38
39
40
41
42
43
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gspell
pkgver=1.8.3
pkgrel=0
pkgdesc="Flexible API to add spell checking to a GTK+ application"
options="!check" # Test fails because of missing machine-id
url="https://wiki.gnome.org/Projects/gspell"
arch="all"
license="LGPL-2.1-or-later"
depends="iso-codes"
makedepends="glib-dev vala iso-codes-dev gtk+3.0-dev enchant2-dev
	gobject-introspection-dev"
checkdepends="xvfb-run hunspell-en ibus"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gspell/${pkgver%.*}/gspell-$pkgver.tar.xz"

case "$CARCH" in
	s390x)
		options="!check" # Requires ibus which is s390x-only
		;;
esac

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	xvfb-run make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="4116231fdfb416e70ee34c73e0ecf81f0071e81ad477135e3c1e270534dfe4be20c7f45e316e13d33c79944d282ed3223251122983a0f3199ea57c3431a24c1d  gspell-1.8.3.tar.xz"