1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=24f6190e42f24979886cf6d974b70bd7638fda46
7 pkgdesc='A runtime developer console and IRB alternative with powerful introspection capabilities'
9 url='http://pry.github.io/'
11 depends=(ruby-coderay ruby-method_source)
13 checkdepends=(ruby-rake ruby-rspec ruby-yard)
15 source=(git+https://github.com/pry/pry.git#commit=$_commit)
20 sed -i -r -e 's|~>|>=|' pry.gemspec
24 local _gemdir="$(gem env gemdir)"
30 --ignore-dependencies \
32 --install-dir "tmp_install/$_gemdir" \
33 --bindir "tmp_install/usr/bin" \
35 find "tmp_install/$_gemdir/gems/" \
42 -iname "gem.build_complete" -o \
46 rm -r tmp_install/$_gemdir/cache
50 local _gemdir="$(gem env gemdir)"
52 EDITOR=vim TERM=screen-256color GEM_HOME="tmp_install/$_gemdir" rake
57 cp -a tmp_install/* "$pkgdir"/
58 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/