1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc="Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests."
8 url='https://github.com/vcr/vcr'
11 makedepends=(ruby-rspec ruby-test-unit ruby-rake ruby-pry)
13 source=(https://github.com/vcr/vcr/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('b6b6e2444e1a837a0568fbaa721934270c1500bee466562cc4980621c7522af7')
18 sed -i 's|~>|>=|' -i vcr.gemspec
22 local _gemdir="$(gem env gemdir)"
28 --ignore-dependencies \
30 --install-dir "tmp_install/$_gemdir" \
31 --bindir "tmp_install/usr/bin" \
33 find "tmp_install/$_gemdir/gems/" \
40 -iname "gem.build_complete" -o \
44 rm -r tmp_install/$_gemdir/cache
47 # Disabled: revisit after a lot more gems are packaged
49 # local _gemdir="$(gem env gemdir)"
51 # GEM_HOME="tmp_install/$_gemdir" rake
56 cp -a tmp_install/* "$pkgdir"/
57 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/