1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=90aee726d033670bfd179c1d6ca4302316514476
7 pkgdesc='A fast and scalable test runner'
9 url='https://github.com/ioquatix/sus'
13 checkdepends=(ruby-bake-test ruby-bake-test-external ruby-covered)
15 source=(git+https://github.com/ioquatix/sus.git#commit=$_commit)
20 sed -r -e 's|~>|>=|g' -e '/signing_key/d' -i sus.gemspec
21 echo gemspec > gems.rb
25 local _gemdir="$(gem env gemdir)"
31 --ignore-dependencies \
33 --install-dir "tmp_install/$_gemdir" \
34 --bindir "tmp_install/usr/bin" \
36 find "tmp_install/$_gemdir/gems/" \
43 -iname "gem.build_complete" -o \
47 rm -r tmp_install/$_gemdir/cache
51 local _gemdir="$(gem env gemdir)"
53 PATH="$PWD/tmp_install/usr/bin:$PATH" GEM_HOME="tmp_install/$_gemdir" bake test
58 cp -a tmp_install/* "$pkgdir"/
59 install -Dm644 license.md -t "$pkgdir"/usr/share/licenses/$pkgname/