1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-cucumber-cucumber-expressions
5 _commit=2d1d8c65d5ddef8433f92d526bb16d638a86d433
7 pkgdesc="Cucumber Expressions - a simpler alternative to Regular Expressions"
9 url='https://github.com/cucumber/cucumber-expressions/tree/main/ruby'
12 makedepends=(git ruby-rake ruby-rspec)
14 source=(git+https://github.com/cucumber/cucumber-expressions.git#commit=$_commit)
18 local _gemdir="$(gem env gemdir)"
19 cd cucumber-expressions/ruby
20 gem build cucumber-cucumber-expressions.gemspec
24 --ignore-dependencies \
26 --install-dir "tmp_install/$_gemdir" \
27 --bindir "tmp_install/usr/bin" \
28 cucumber-cucumber-expressions-$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 cucumber-expressions/ruby
46 GEM_HOME="tmp_install/$_gemdir" rake
50 cd cucumber-expressions/ruby
51 cp -a tmp_install/* "$pkgdir"/
52 install -Dm644 ../LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/