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

pkgname='mythes-pt_pt'
pkgver=20060817
pkgrel=3
pkgdesc="Portuguese (European) thesaurus"
arch=('any')
url="http://openthesaurus.caixamagica.pt/"
license=('GPL')
optdepends=('libmythes: offers thesaurus library functions')
source=("http://contribsoft.caixamagica.pt/export/294/packages/cm12/myspell-dictionaries/current/SOURCES/thes_pt_PT_v2.zip")
md5sums=('2fa9a6845405ebb574c2f82a5cddbcbf')

build() {
  /bin/true
}

package() {
  cd $srcdir
  install -dm755 $pkgdir/usr/share/mythes
  install -m644 th_pt_PT_v2.* $pkgdir/usr/share/mythes

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