aboutsummaryrefslogtreecommitdiffstats
path: root/main/hunspell-pt-br/APKBUILD
blob: f75569144a3d238472c1fc6541e302d79b28ee9b (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
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=hunspell-pt-br
pkgver=20131017
pkgrel=0
pkgdesc="Portuguese (Brazil) hunspell dictionaries"
url="http://pt-br.libreoffice.org/"
arch="noarch"
license="LGPL-3.0 MPL"
depends=""
makedepends=""
source="https://pt-br.libreoffice.org/assets/Uploads/PT-BR-Documents/VERO/VeroptBRV320AOC.oxt
	"

_builddir="$srcdir"/$pkgname-$pkgver

unpack() {
	msg "Unpacking sources..."
	mkdir -p "$_builddir"
	cd "$_builddir"
	for u in $source; do
		local s="$SRCDEST/$(filename_from_uri $u)"
		case "$s" in
		*.oxt) unzip $s ;;
		esac
	done
}

build() {
	:
}

package() {
	cd "$_builddir"

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

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

sha512sums="217d25ecc532c4b3386593cea4d430094ec4badb81e12648d3ca87a7f2e29243a94028a1287ff50db4532c6e1a33e52a0839fd0d45ae8c167bc89df940209b14  VeroptBRV320AOC.oxt"