1 # Maintainer: AdUser <alexey_z@list.ru>
2 pkgname=stardict-engcom-ru
6 pkgdesc="Open English-Russian dictionary of computer terms"
8 url="http://engcom.org.ru"
11 makedepends=('makedict' 'python2' 'dictd')
12 source=(http://etersoft.ru/download/engcom/$fake_pkgname-$pkgver.tar.bz2)
13 md5sums=('2ae0577023810e737271c765a5552afb')
15 path="/usr/share/stardict/dic/"
16 magic="stardict-$pkgname-2.4.2" # ^_^
20 cd "$srcdir/$fake_pkgname-$pkgver/dict"
24 mv EngCom.koi $pkgname.koi
25 python2 engcom_parser.py $pkgname.koi > $pkgname.tmp
26 grep -v "<meta_info>" $pkgname.tmp > $pkgname
27 makedict -i xdxf -o stardict $pkgname -d temp
28 dictzip temp/$magic/$pkgname.dict
33 cd "$srcdir/$fake_pkgname-$pkgver/dict"
34 for i in dict.dz idx ifo; do
35 install -p -m644 -D temp/$magic/$pkgname.$i $pkgdir/$path/$pkgname.$i
39 # vim:set ts=2 sw=2 et: