1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-async-rspec
6 pkgdesc='Helpers for writing specs against the async gem'
8 url='https://github.com/socketry/async-rspec'
10 depends=(ruby-rspec ruby-rspec-files ruby-rspec-memory)
11 checkdepends=(ruby-async ruby-async-io ruby-covered)
13 source=(https://github.com/socketry/async-rspec/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('9635688bef6be7922363620a41d9c64f60ff6537af3ac83106a29947800b9cd3')
17 cd async-rspec-$pkgver
18 sed -r -e 's|~>|>=|g' -i async-rspec.gemspec
22 local _gemdir="$(gem env gemdir)"
23 cd async-rspec-$pkgver
24 gem build async-rspec.gemspec
28 --ignore-dependencies \
30 --install-dir "tmp_install/$_gemdir" \
31 --bindir "tmp_install/usr/bin" \
32 async-rspec-$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 async-rspec-$pkgver
50 GEM_HOME="tmp_install/$_gemdir" rspec
54 cd async-rspec-$pkgver
55 cp -a tmp_install/* "$pkgdir"/