summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 864c9a8a4e3317ebb8d3023000f61907954a0734 (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
# Maintainer: jtts
# From hunspell-sv-se:
# Contributor: Oscar Carlsson <oscar.carlsson (at) gmail.com>

pkgname=hyphen-sv
pkgver=20130107
_pkgver=1.11
pkgrel=2
pkgdesc="Swedish hyphenation"
arch=('i686' 'x86_64')
url="http://hunspell.sourceforge.net/"
license=('MPL' 'LGPL3')
depends=('hyphen')
source=("http://extensions.libreoffice.org/extension-center/swedish-hyphenation/releases/$_pkgver/hyph_sv.oxt")
sha256sums=('3542045cc924a21d8b690a569e397b5d3108895e21eae6b09c7c0683d3867a6a')

package() {
  cd $srcdir
  install -dm755 $pkgdir/usr/share/hyphen
  install -D -m644 hyph_sv.dic $pkgdir/usr/share/hyphen/hyph_sv.dic
  install -D -m644 README_hyph_sv.txt $pkgdir/usr/share/licenses/hyphen-sv/README_hyph_sv.txt

  pushd $pkgdir/usr/share/hyphen/
  ln -s hyph_sv.dic hyph_sv_SE.dic
  ln -s hyph_sv.dic hyph_sv_FI.dic
  popd

  install -dm755 $pkgdir/usr/share/myspell/dicts
  pushd $pkgdir/usr/share/myspell/dicts
  ln -sv /usr/share/hyphen/hyph_sv.dic .
  ln -sv /usr/share/hyphen/hyph_sv_SE.dic .
  ln -sv /usr/share/hyphen/hyph_sv_FI.dic .
  popd
}