updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / hyphen-ru / PKGBUILD
blob614762302a70dca7a81de53a0018c7a7fa73301f
1 # $Id$
3 pkgname=('hyphen-ru')
4 pkgver=0.1
5 pkgrel=2
6 pkgdesc="Russian hyphenation rules"
7 arch=(any)
8 url="http://wiki.services.openoffice.org/wiki/Dictionaries"
9 license=('LGPL')
10 optdepends=('hyphen: offers hyphenation library functions')
11 source=(http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_ru_RU.zip)
12 md5sums=('f8a8b8a368bc7394b5a4060082c44bb4')
15 build() {
16   /bin/true
20 package() {
22   cd "$srcdir"
23   install -dm755 ${pkgdir}/usr/share/hyphen
24   #cp -p hyph_ru_RU.dic $pkgdir/usr/share/hyphen
25   install -m 644 hyph_ru_RU.dic $pkgdir/usr/share/hyphen
27   # the symlinks
28   install -dm755 ${pkgdir}/usr/share/myspell/dicts
29   pushd $pkgdir/usr/share/myspell/dicts
30     for file in $pkgdir/usr/share/hyphen/*; do
31       ln -sv /usr/share/hyphen/$(basename $file) .
32     done
33   popd
34   
35   # docs
36   install -dm755 ${pkgdir}/usr/share/doc/$pkgname
37   install -m 644 README_hyph_ru_RU.txt $pkgdir/usr/share/doc/$pkgname