1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-cucumber-html-formatter
6 pkgdesc="HTML formatter for Cucumber"
8 url='https://github.com/cucumber/html-formatter/tree/main/ruby'
10 depends=(ruby-cucumber-messages)
11 makedepends=(npm ruby-rake ruby-rspec ruby-cucumber-compatibility-kit)
13 source=(https://github.com/cucumber/html-formatter/archive/v$pkgver/cucumber-html-formatter-$pkgver.tar.gz)
14 sha256sums=('f76c2d3aa72f9efa9af8100039b1600ac597c5c477a213efe77d836fd1ee57ec')
17 cd html-formatter-$pkgver/ruby
18 sed -r -e 's|~>|>=|g' -e "s/, '< 22.1'//" -i cucumber-html-formatter.gemspec
22 local _gemdir="$(gem env gemdir)"
23 cd html-formatter-$pkgver
26 gem build cucumber-html-formatter.gemspec
30 --ignore-dependencies \
32 --install-dir "tmp_install/$_gemdir" \
33 --bindir "tmp_install/usr/bin" \
34 cucumber-html-formatter-$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)"
51 cd html-formatter-$pkgver/ruby
52 GEM_HOME="tmp_install/$_gemdir" rake
56 cd html-formatter-$pkgver/ruby
57 cp -a tmp_install/* "$pkgdir"/