1 # Maintainer: Dennis Felsing <defelsing+aur@gmail.com>
6 pkgdesc="A dictionary / word translator written in Ruby. It uses the dictionaries you can fetch from http://www.dict.cc. RDictCc has a tight integration into Emacs."
8 url="http://www.tsdh.de/cgi-bin/wiki.pl/RDictCc"
10 depends=('ruby' 'gdbm')
11 install=rdictcc.install
12 source=(http://www.tsdh.de/apps/$pkgname-$pkgver.tar.bz2)
14 md5sums=('0bc4918d46b4ddab58ac1f3925846601')
17 cd "${srcdir}/${pkgname}"
18 sed -i "s#-<>]/, ' ').strip.split do |w|#<>-]/, ' ').strip.split do#" rdictcc.rb
19 sed -i 's#rdictcc.rb#rdictcc#g' rdictcc.rb
20 sed -i 's#/usr/local/bin/rdictcc.rb#/usr/bin/rdictcc#' rdictcc.el
24 cd "${srcdir}/${pkgname}"
25 install -Dm755 rdictcc.rb "$pkgdir/usr/bin/rdictcc"
26 install -Dm644 rdictcc.el "$pkgdir/usr/share/emacs/site-lisp/rdictcc.el"
27 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"