summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d7a8d12f5fd2077c03d074fa87e293179a151d7 (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
# Maintainer: Andrejs Mivre┼ćiks <gim at fastmail dot fm>
#             Jengenijs Protopopovs <jprotopopov1122 at gmail dot com>
pkgname=hunspell-lv
pkgver=1.4.0
pkgrel=1
pkgdesc='Latvian hunspell dictionary'
arch=('any')
url='http://dict.dv.lv/download.php?prj=lv'
license=('LGPL2')
depends=('hunspell' 'hyphen')
source=("http://dict.dv.lv/download/lv_LV-${pkgver}.zip")
sha256sums=('9366f562671ea3d7c850793d3c39ac2593c20592b916500160240cccb0e3cb4e')

package() {
  install -Dm644 lv_LV.aff "$pkgdir/usr/share/hunspell/lv_LV.aff"
  install -Dm644 lv_LV.dic "$pkgdir/usr/share/hunspell/lv_LV.dic"

  install -dm755 "$pkgdir/usr/share/myspell/dicts"
  ln -s /usr/share/hunspell/lv_LV.aff "$pkgdir/usr/share/myspell/dicts"
  ln -s /usr/share/hunspell/lv_LV.dic "$pkgdir/usr/share/myspell/dicts"

  install -Dm644 hyph_lv_LV.dic "$pkgdir/usr/share/hyphen/hyph_lv_LV.dic"
  install -Dm644 README_lv_LV.txt "$pkgdir/usr/share/doc/hunspell-lv/README.txt"
  install -Dm644 README_hyph_lv_LV.txt "$pkgdir/usr/share/doc/hunspell-lv/README_hyph.txt"
}