1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-build-environment
5 _commit=6e8cb7f5ca00a8194dea5a6e01b5c92a2b48f8d1
7 pkgdesc='A nested hash data structure for controlling build environments'
9 url='https://github.com/ioquatix/build-environment'
13 checkdepends=(ruby-covered ruby-rspec ruby-rake)
15 source=(git+https://github.com/ioquatix/build-environment.git#commit=$_commit)
20 sed -r -e 's|~>|>=|g' -i build-environment.gemspec
24 local _gemdir="$(gem env gemdir)"
26 gem build build-environment.gemspec
30 --ignore-dependencies \
32 --install-dir "tmp_install/$_gemdir" \
33 --bindir "tmp_install/usr/bin" \
34 build-environment-$pkgver.gem
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 GEM_HOME="tmp_install/$_gemdir" rake
57 cp -a tmp_install/* "$pkgdir"/