1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-climate_control
6 pkgdesc='Modify your ENV easily with ClimateControl'
8 url='https://github.com/thoughtbot/climate_control'
11 makedepends=(ruby-rspec ruby-rake ruby-simplecov)
13 source=(https://github.com/thoughtbot/climate_control/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('85aaf7880cb796884697bde4696e26d211ad45bab069c121205e0d12a7fa5b66')
17 cd climate_control-$pkgver
18 sed -e '/standard/d' -e 's|git ls-files|find -type f|' -i climate_control.gemspec
22 local _gemdir="$(gem env gemdir)"
23 cd climate_control-$pkgver
24 gem build climate_control.gemspec
28 --ignore-dependencies \
30 --install-dir "tmp_install/$_gemdir" \
31 --bindir "tmp_install/usr/bin" \
32 climate_control-$pkgver.gem
33 find "tmp_install/$_gemdir/gems/" \
40 -iname "gem.build_complete" -o \
44 rm -r tmp_install/$_gemdir/cache
48 local _gemdir="$(gem env gemdir)"
49 cd climate_control-$pkgver
50 GEM_HOME="tmp_install/$_gemdir" rake
54 cd climate_control-$pkgver
55 cp -a tmp_install/* "$pkgdir"/
56 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/