1 # Contributor: Sloonz <sloonz+aur@gmail.com>
6 pkgdesc="Kanji dictionary with multiradical, fuzzy SKIP and stroke count search"
8 url="http://github.com/sloonz/kanjidic"
10 depends=(ruby-libglade)
12 _gitroot="http://github.com/sloonz/kanjidic.git"
18 if [[ -d $srcdir/$_gitname ]] ; then
25 rm -rf $srcdir/${_gitname}-build &&
26 cp -r $srcdir/$_gitname ${startdir}/src/${_gitname}-build || return 1
28 cd $srcdir/${_gitname}-build
30 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
32 gem build kanjidic.gemspec &&
33 gem install --ignore-dependencies -i "$pkgdir$_gemdir" kanjidic-*.gem &&
34 install -d $pkgdir/usr/bin &&
35 ln -s "$_gemdir/bin/kanjidic" "$pkgdir/usr/bin/kanjidic"