summaryrefslogtreecommitdiffstats
path: root/main/enchant/APKBUILD
blob: d09d921dc93965efba7b2c06e8c256807dc83d7a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=enchant
pkgver=1.6.0
pkgrel=8
pkgdesc="A wrapper library for generic spell checking"
url="http://www.abisource.com/enchant/"
arch="all"
license="LGPL2+"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
depends_dev="glib-dev"
makedepends="aspell-dev dbus-glib-dev hunspell-dev libiconv-dev gettext-dev"
source="http://www.abisource.com/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	#rm "$pkgdir"/usr/lib/*.la
	find "$pkgdir" -iname *.la -delete
}
md5sums="de11011aff801dc61042828041fb59c7  enchant-1.6.0.tar.gz"
sha256sums="2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f  enchant-1.6.0.tar.gz"
sha512sums="0ca1634bb783df51512df4abecc89abdadee6baf7330d6e5f90cc15d10779896a3521a1c079ecc07e4df4f7a018ce398cca9d0125a7845a314a059840ebc9137  enchant-1.6.0.tar.gz"