updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hunspell-pt_pt / PKGBUILD
blob67572b41fa4fdc8cb01774880d1eba7fa4a52167
1 # Maintainer: Mauro Santos <registo.mailling@gmail.com>
3 pkgname=hunspell-pt_pt
4 _pkgname=hunspell-pt_PT
5 pkgver=20120118
6 pkgrel=1
7 pkgdesc="Portuguese (European, post-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=('de40d6bd755eda7d7a653cc77840c37d')
15 build() {
16   /bin/true
19 package() {
20   cd ${srcdir}/${_pkgname}-${pkgver}
21   install -dm755 ${pkgdir}/usr/share/hunspell
22   install -m644 pt_PT.dic ${pkgdir}/usr/share/hunspell/pt_PT.dic
23   install -m644 pt_PT.aff ${pkgdir}/usr/share/hunspell/pt_PT.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