updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / hunspell-pt_pt-preao / PKGBUILD
blob2a5660a2f2459346f21f1833829c501bc44b1dff
1 # Maintainer: Mauro Santos <registo.mailling@gmail.com>
3 pkgname=hunspell-pt_pt-preao
4 _pkgname=hunspell-pt_PT-preao
5 pkgver=20111225
6 pkgrel=1
7 pkgdesc="Portuguese (European, pre-orthographic agreement) hunspell dictionaries"
8 arch=(any)
9 url="http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/"
10 license=('GPL' 'LGPL' 'MPL')
11 optdepends=('hunspell:  the spell checking libraries and apps')
12 source=(http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/${_pkgname}-${pkgver}.tar.gz)
13 md5sums=('6eafbfc9ab5315bb46e7570b4c15bbeb')
15 build() {
16   /bin/true
19 package() {
20   cd ${srcdir}/${_pkgname}-${pkgver}
21   install -dm755 ${pkgdir}/usr/share/hunspell
22   install -m644 pt_PT-preao.dic ${pkgdir}/usr/share/hunspell/pt_PT_preao.dic
23   install -m644 pt_PT-preao.aff ${pkgdir}/usr/share/hunspell/pt_PT_preao.aff
25   # the symlinks
26   install -dm755 ${pkgdir}/usr/share/myspell/dicts
27   pushd ${pkgdir}/usr/share/myspell/dicts
28     for file in ${pkgdir}/usr/share/hunspell/*; do
29       ln -sv /usr/share/hunspell/$(basename ${file}) .
30     done
31   popd
32   
33   # the doc
34   install -D -m644 README_pt_PT.txt $pkgdir/usr/share/doc/${pkgname}/README_pt_PT.txt
35   
36   # the licence
37   install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING