aboutsummaryrefslogtreecommitdiffstats
path: root/main/aspell/APKBUILD
blob: 096c0546b30e46234ff1af6ce2b24887019fca3e (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=aspell
pkgver=0.60.6.1
pkgrel=13
pkgdesc="A spell checker designed to eventually replace Ispell"
url="http://aspell.net/"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-compat::noarch $pkgname-utils $pkgname-dev $pkgname-doc
	$pkgname-lang $pkgname-libs"
depends=
depends_dev="$pkgname-utils"
makedepends="ncurses-dev perl gettext-dev"
install=
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	CVE-2019-17544.patch
	"
builddir="$srcdir"/$pkgname-$pkgver

# secfixes:
#   0.60.6.1-r13:
#     - CVE-2019-17544

prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./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() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	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/
}

utils() {
	pkgdesc="aspell misc utils"
	depends="$pkgname perl"
	install -d "$subpkgdir"/usr/bin
	cd "$pkgdir"/usr/bin
	mv pre* aspell-import run-with-aspell word-list-compress "$subpkgdir"/usr/bin/
}

libs() {
	default_libs
	mv "$pkgdir"/usr/share "$subpkgdir"/usr
	rm -fr "$pkgdir"/usr/lib
}

sha512sums="f310c7590be98406589b5c26ca36a2ecfe4733f0b40fd6c176b96b7955ef2b5cd0ec9a3d770cf132146ae7a896042b4b698945112995ee1ae66adcfa5542247f  aspell-0.60.6.1.tar.gz
8df739702cc7591344359721eb7fff247b02404a60666cc94b1e8da063c711d87df5f97dcf22af05efdb54f4e2a38bbc0b6b2bb60386fc6e9c68e15fe2fa9535  CVE-2019-17544.patch"