summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e53d53a1ca5c3b4e18b9822f999e06be286792bf (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: Mauro Santos <registo.mailling@gmail.com>

pkgname='hyphen-pt_pt'
pkgver=20040415
pkgrel=3
pkgdesc="Portuguese hyphenation rules"
arch=('any')
url="http://download.services.openoffice.org/contrib/dictionaries/"
license=('LGPL')
optdepends=('hyphen: offers hyphenation library functions')
source=('http://download.services.openoffice.org/contrib/dictionaries/hyph_pt_PT.zip')
sha256sums=('2846f6079d8965447b22c1637696be71b69bdca91f5558c0c2a2b9b3b8de8dd2')

package() {
  cd "$srcdir"
  install -dm755 $pkgdir/usr/share/hyphen
  install -m644 hyph_pt_PT.dic $pkgdir/usr/share/hyphen

  # the symlinks
  install -dm755 $pkgdir/usr/share/myspell/dicts
  pushd $pkgdir/usr/share/myspell/dicts
    for file in $pkgdir/usr/share/hyphen/*; do
      ln -sv /usr/share/hyphen/$(basename $file) .
    done
  popd
  
  # docs
  install -dm755 $pkgdir/usr/share/doc/$pkgname
  install -m644 README_hyph_pt_PT.txt $pkgdir/usr/share/doc/$pkgname
  
  # licences
  install -dm755 $pkgdir/usr/share/licenses/$pkgname/
  install -m644 README_hyph_pt_PT.txt $pkgdir/usr/share/licenses/$pkgname
}