1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-cucumber-ci-environment
6 pkgdesc='Detect CI Environment from environment variables'
8 url='https://github.com/cucumber/ci-environment'
11 makedepends=(ruby-rake ruby-rspec)
13 source=(https://github.com/cucumber/ci-environment/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('b17edfcdbd6a2da625b502b3dca63a30661b361cd7a312b5559e98861aed63ca')
17 local _gemdir="$(gem env gemdir)"
18 cd ci-environment-$pkgver/ruby
19 rake lib/cucumber/ci_environment/CiEnvironments.json
20 gem build cucumber-ci-environment.gemspec
24 --ignore-dependencies \
26 --install-dir "tmp_install/$_gemdir" \
27 --bindir "tmp_install/usr/bin" \
28 cucumber-ci-environment-$pkgver.gem
29 find "tmp_install/$_gemdir/gems/" \
36 -iname "gem.build_complete" -o \
40 rm -r tmp_install/$_gemdir/cache
44 local _gemdir="$(gem env gemdir)"
45 cd ci-environment-$pkgver/ruby
46 GEM_HOME="tmp_install/$_gemdir" rake
50 cd ci-environment-$pkgver/ruby
51 cp -a tmp_install/* "$pkgdir"/
52 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/