APKBUILD 1.11 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=aspell
3
pkgver=0.60.6.1
Natanael Copa's avatar
Natanael Copa committed
4
_pkgmajorver=${pkgver%.*}
5
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6
7
pkgdesc="A spell checker designed to eventually replace Ispell"
url="http://aspell.net/"
8
arch="all"
Natanael Copa's avatar
Natanael Copa committed
9
10
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
Natanael Copa's avatar
Natanael Copa committed
11
depends=
Natanael Copa's avatar
Natanael Copa committed
12
makedepends="ncurses-dev perl"
Natanael Copa's avatar
Natanael Copa committed
13
14
15
16
install=
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	libmath.patch"

17
18
19
20
21
22
23
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

Natanael Copa's avatar
Natanael Copa committed
24
build() { 
25
	cd "$_builddir"
26
27
28
29
30
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
31
32
33
34
35

	# we want add -lm to linker flag for libaspell so wil build that
	# separately. this is just an ugly workaround
	make libaspell.la LDFLAGS="$LDFLAGS -lm" || return 1
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
36
37
38
}

package() {
39
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
40
	make DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
41
42
	rm "$pkgdir"/usr/lib/aspell*/*.la \
		"$pkgdir"/usr/lib/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
43
44
	ln -s $pkgname-${_pkgmajorver} "$pkgdir"/usr/lib/$pkgname || return 1
}
45
md5sums="e66a9c9af6a60dc46134fdacf6ce97d7  aspell-0.60.6.1.tar.gz
Natanael Copa's avatar
Natanael Copa committed
46
715f4e138ab33b27201d90cbc98b4fb3  libmath.patch"