aboutsummaryrefslogtreecommitdiffstats
path: root/community/enchant2/APKBUILD
blob: e8aa86a329d4e30b497bdd2a99618c6f6b6df87c (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
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=enchant2
pkgver=2.2.7
pkgrel=0
pkgdesc="A wrapper library for generic spell checking (v2)"
url="https://abiword.github.io/enchant/"
arch="all"
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="aspell-dev glib-dev dbus-glib-dev hunspell-dev gettext-dev file
	bash"
options="!check" # needs unpackaged unittest-cpp
source="https://github.com/AbiWord/enchant/releases/download/v$pkgver/enchant-$pkgver.tar.gz"
builddir="$srcdir/enchant-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" pkgdatadir=/usr/share/enchant-2 install
}

sha512sums="696455cf782b3186d19988ed59ca3cc6030a431d44ef3828039590afb08fd282a79ce6246a342e6bf7a0bf3bf63d4822d841ba01394da9f9e4394a491b2373b6  enchant-2.2.7.tar.gz"