aboutsummaryrefslogtreecommitdiffstats
path: root/main/enchant/APKBUILD
blob: d1f725af8e6fd5b086ac76c4052b98c6df021ea1 (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
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=enchant
pkgver=1.6.0
pkgrel=13
pkgdesc="A wrapper library for generic spell checking"
url="http://www.abisource.com/enchant/"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="aspell-dev glib-dev dbus-glib-dev hunspell-dev gettext-dev file
	bash"
source="http://www.abisource.com/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
	hunspell-build-fix.patch"

builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$builddir"
	update_config_sub
	default_prepare
}

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

check() {
	cd "$builddir"/tests
	./test-enchant
}

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

sha512sums="0ca1634bb783df51512df4abecc89abdadee6baf7330d6e5f90cc15d10779896a3521a1c079ecc07e4df4f7a018ce398cca9d0125a7845a314a059840ebc9137  enchant-1.6.0.tar.gz
c0b7fd8fd00a81ea2c08ea7ce2bdffa826b5a3a0c06eacb818681f0f977d8e76c69f7938c10cdf71571cd1cbbf0e576d36fc74a41755fb570e047525195aeb99  hunspell-build-fix.patch"