updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / mythes-ru / PKGBUILD
blob05d35c522514e1a26342c3c988bf3ed1b0e9af50
1 # $Id$
3 pkgname=('mythes-ru')
4 pkgver=0.1
5 pkgrel=2
6 pkgdesc="Russian thesaurus"
7 arch=(any)
8 url="http://wiki.services.openoffice.org/wiki/Dictionaries"
9 license=('LGPL')
10 optdepends=('libmythes: offers thesaurus library functions')
11 source=(http://download.i-rs.ru/pub/openoffice/dict/thes_ru_RU_v2.zip)
12 md5sums=('802cc8a3e5447a65debdbad13247f5c4')
15 build() {
16   /bin/true
19 package() {
21   cd "$srcdir"
22   install -dm755 ${pkgdir}/usr/share/mythes
23   # cp -p th_ru_RU_v2.* $pkgdir/usr/share/mythes
24   install -m 644 th_ru_RU_v2.* $pkgdir/usr/share/mythes
26   # the symlinks
27   install -dm755 ${pkgdir}/usr/share/myspell/dicts
28   pushd $pkgdir/usr/share/myspell/dicts
29     for file in $pkgdir/usr/share/mythes/*; do
30       ln -sv /usr/share/mythes/$(basename $file) .
31     done
32   popd
33   
34   # docs
35   install -dm755 ${pkgdir}/usr/share/doc/$pkgname
36   install -m 644 README_thes_ru_RU.txt $pkgdir/usr/share/doc/$pkgname
37   install -m 644 licence.txt $pkgdir/usr/share/doc/$pkgname