updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / hunspell-ru-aot / PKGBUILD
blob0c6c4debebebbb70a10e0b854acb0f68bcd5d3a0
1 # $Id$
3 pkgname=hunspell-ru-aot
4 _realname=dict_ru_ru-aot
5 pkgver=0.2.8
6 pkgrel=1
7 pkgdesc="Russian spellcheck dictionary. Based on works of AOT.ru group"
8 provides=('hunspell-ru')
9 conflicts=('hunspell-ru')
10 replaces=('hunspell-ru')
11 arch=(any)
12 url="http://extensions.libreoffice.org/extension-center/russian-spellcheck-dictionary.-based-on-works-of-aot-group"
13 license=('LGPL')
14 optdepends=('hunspell: the spell checking libraries and apps')
15 source=(http://extensions.libreoffice.org/extension-center/russian-spellcheck-dictionary.-based-on-works-of-aot-group/pscreleasefolder.2011-09-06.6209385965/${pkgver}/${_realname}-${pkgver}.oxt)
16 md5sums=('df6156192ddeaf487bf55c52f955923c')
18 build() {
19   /bin/true
22 package() {
23   cd "$srcdir"
24   install -dm755 ${pkgdir}/usr/share/hunspell
25   install -m 644 russian-aot.dic $pkgdir/usr/share/hunspell/ru_RU_aot.dic
26   install -m 644 russian-aot.aff $pkgdir/usr/share/hunspell/ru_RU_aot.aff
28   # the symlinks
29   install -dm755 ${pkgdir}/usr/share/myspell/dicts
30   pushd $pkgdir/usr/share/myspell/dicts
31     for file in $pkgdir/usr/share/hunspell/*; do
32       ln -sv /usr/share/hunspell/$(basename $file) .
33     done
34   popd
36   # docs
37   install -dm755 ${pkgdir}/usr/share/doc/$pkgname
38   install -m 644 copyright.txt $pkgdir/usr/share/doc/$pkgname
39   install -m 644 lgpl.txt $pkgdir/usr/share/doc/$pkgname