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

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

build() {
	:
}

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="3445e8b79fa87b28cd319c12965c64c4ef33636f7a3d6cbe5bdbc2575170c7dc3019cea2ff58bae5fea484f1845b8e6a6d00973d3223d9bed3b8e1e92ffefcc0  hunspell-pt_PT-20170814.tar.gz"