summaryrefslogtreecommitdiff
path: root/user/aspell/APKBUILD
blob: bce270974c6de5264d238300c5d7f980c2f3bea4 (plain) (blame)
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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: 
pkgname=aspell
pkgver=0.60.7
pkgrel=0
pkgdesc="Libre spell checker software"
url="http://aspell.net/"
arch="all"
license="LGPL-2.0+"
depends="perl"
makedepends="ncurses-dev perl"
provides="aspell-utils"
subpackages="$pkgname-compat::noarch $pkgname-dev $pkgname-doc
	$pkgname-lang"
source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	LIBS="-ltinfo" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-dict-dir=/usr/share/$pkgname \
		--enable-pkgdatadir=/usr/share/$pkgname \
		--enable-compile-in-filters
	make
}

check() {
	make check
}

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

compat() {
	pkgdesc="aspell compatibility scripts for ispell and unix spell"
	depends="$pkgname"
	install -d "$subpkgdir"/usr/bin
	cd "$pkgdir"/usr/share/$pkgname
	mv spell ispell "$subpkgdir"/usr/bin/
}

sha512sums="6f5fcd1c29164ee18f205594b66f382b51d19b17686293a931ca92c1442d3f7228627ca7d604d860551d0d367ac34dfb2ae34170a844f51e84e390fb1edc4535  aspell-0.60.7.tar.gz"