aboutsummaryrefslogtreecommitdiffstats
path: root/main/hunspell-pt/APKBUILD
blob: 7f51471b84afb8e2c88b48a4bcdd8b9d65e8b765 (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
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=hunspell-pt
pkgver=20190329
pkgrel=0
pkgdesc="Portuguese hunspell dictionaries"
url="http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/"
arch="noarch"
options="!check" # data only package
license="GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1"
subpackages="$pkgname-doc"
source="http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/hunspell-pt_PT-$pkgver.tar.gz"

builddir="$srcdir"/hunspell-pt_PT-$pkgver

package() {
	cd "$builddir"

	install -dm755 $pkgdir/usr/share/hunspell
	install -m644 pt_*.dic pt_*.aff $pkgdir/usr/share/hunspell

	local lang
	for lang in pt_AO; do
		ln -svf pt_PT.aff $pkgdir/usr/share/hunspell/$lang.aff
		ln -svf pt_PT.dic $pkgdir/usr/share/hunspell/$lang.dic
	done

	# docs
	install -dm755 ${pkgdir}/usr/share/doc/$pkgname
	install -m644 README_pt*.txt $pkgdir/usr/share/doc/$pkgname
}

sha512sums="b250f9d2a9ea41d757a9f986d3774a794ab7b3936d2313c2944f7d1e193ccbba1e6010b3d2ce387bb898ec3b2e6bffa510d25a349270db41feaf0633ae2b4bcd  hunspell-pt_PT-20190329.tar.gz"