updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / stardict-engcom-ru / PKGBUILD
blob536e9869c1056c455315a91ffb7c2c6d963d8592
1 # Maintainer: AdUser <alexey_z@list.ru>
2 pkgname=stardict-engcom-ru
3 fake_pkgname=engcom
4 pkgver=1.35
5 pkgrel=2
6 pkgdesc="Open English-Russian dictionary of computer terms"
7 arch=('i686' 'x86_64')
8 url="http://engcom.org.ru"
9 license=('GPL')
10 depends=('stardict')
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" # ^_^
18 build()
20   cd "$srcdir/$fake_pkgname-$pkgver/dict"
21   mkdir -p temp
23   make
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
31 package()
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
36   done
39 # vim:set ts=2 sw=2 et: