1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-async-pool
6 pkgdesc='A singleplex and multiplex resource pool for implementing robust clients'
8 url='https://github.com/socketry/async-pool'
11 checkdepends=(ruby-bake-test ruby-bake-test-external ruby-covered ruby-sus ruby-sus-fixtures-async)
13 source=(https://github.com/socketry/async-pool/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('0b708ff0f8de392dd674be9725ab4a94595b13b0a4ed50fd81dc2e4a328ec072')
18 sed -r -e 's|~>|>=|g' -e '/signing_key/d' -i async-pool.gemspec
19 echo gemspec > gems.rb
23 local _gemdir="$(gem env gemdir)"
25 gem build async-pool.gemspec
29 --ignore-dependencies \
31 --install-dir "tmp_install/$_gemdir" \
32 --bindir "tmp_install/usr/bin" \
33 async-pool-$pkgver.gem
34 find "tmp_install/$_gemdir/gems/" \
41 -iname "gem.build_complete" -o \
45 rm -r tmp_install/$_gemdir/cache
49 local _gemdir="$(gem env gemdir)"
51 # https://github.com/socketry/async-pool/issues/15
52 GEM_HOME="tmp_install/$_gemdir" bake test || echo "Tests failed"
57 cp -a tmp_install/* "$pkgdir"/
58 install -Dm644 license.md -t "$pkgdir"/usr/share/licenses/$pkgname/