updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hunspell-sl / PKGBUILD
blob573c4ff9f40f6ac5557eb12dbf690e5dc8bce887
1 # Contributor: Blaž Tomažič <blaz.tomazic@gmail.com>
3 pkgname=hunspell-sl
4 pkgver=20070127
5 pkgrel=1
6 pkgdesc="Slovenian hunspell dictionaries"
7 arch=(any)
8 url="http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/"
9 license=('LGPL2')
10 optdepends=('hunspell:  the spell checking libraries and apps')
11 source=(http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/sl_SI.zip)
12 md5sums=('74d1bf52a3c013e2a5dae2bd20ccdc00')
14 package() {
15   cd "${srcdir}"
16   install -dm755 "${pkgdir}/usr/share/hunspell"
17   install -m644 sl_SI.dic "${pkgdir}/usr/share/hunspell/sl_SI.dic"
18   install -m644 sl_SI.aff "${pkgdir}/usr/share/hunspell/sl_SI.aff"
20   # the symlinks
21   install -dm755 "${pkgdir}/usr/share/myspell/dicts"
22   pushd "${pkgdir}/usr/share/myspell/dicts"
23     for file in ${pkgdir}/usr/share/hunspell/*; do
24       ln -sv /usr/share/hunspell/$(basename $file) .
25     done
26   popd
28   # docs
29   install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
30   install -m644 README_sl_SI.txt "${pkgdir}/usr/share/doc/${pkgname}"