1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=4d415f31d55deab8d338bdb343175959f855b2b0
7 pkgdesc="Convenient wrapper for Ruby's ENV"
9 url='https://github.com/e2/nenv'
13 checkdepends=(ruby-rspec ruby-rake ruby-rubocop)
15 source=(git+https://github.com/e2/nenv.git#commit=$_commit)
20 sed -i '/[cC]overalls/d' spec/spec_helper.rb
22 # https://github.com/e2/nenv/issues/10
23 sed -i '/rubocop/d' Rakefile
27 local _gemdir="$(gem env gemdir)"
29 gem build nenv.gemspec
33 --ignore-dependencies \
35 --install-dir "tmp_install/$_gemdir" \
36 --bindir "tmp_install/usr/bin" \
38 find "tmp_install/$_gemdir/gems/" \
45 -iname "gem.build_complete" -o \
49 rm -r tmp_install/$_gemdir/cache
53 local _gemdir="$(gem env gemdir)"
55 GEM_HOME="tmp_install/$_gemdir" rake
60 cp -a tmp_install/* "$pkgdir"/
61 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/