aboutsummaryrefslogtreecommitdiffstats
path: root/main/hunspell/APKBUILD
blob: 2a2d20a08282cbc25695d46490737738a5f0cfb1 (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
45
46
47
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hunspell
pkgver=1.3.3
pkgrel=0
pkgdesc="Spell checker and morphological analyzer library and program"
url="http://hunspell.sourceforge.net/"
arch="all"
license="GPL2+ LGPL2+ MPL 1.1"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=""
makedepends="gettext-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	fix-includes.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--without-included-gettext \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="4967da60b23413604c9e563beacc63b4  hunspell-1.3.3.tar.gz
42518efac9078bca4a313a5a9afba276  fix-includes.patch"
sha256sums="a7b2c0de0e2ce17426821dc1ac8eb115029959b3ada9d80a81739fa19373246c  hunspell-1.3.3.tar.gz
f7d322213086c99757b8b806aa208187b13bd94ba879f022c154798203bc650b  fix-includes.patch"
sha512sums="7599981d002a4a032c41c83f6287243a4942b0e25c408049a3ba86c16f63ce964800a3ac325ace0402b0d7256690c4a4151a66f19a8f58cc455af0498bb1af04  hunspell-1.3.3.tar.gz
48e555061e9b0c181d6ecb443100eae2c83a36a6bbdbbf94cc06d6176f5948a649a2a28f185040e194e95c27cf796b72c522733cc819c199c73b64d371d6add5  fix-includes.patch"