1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-rspec-memory
6 pkgdesc='RSpec helpers for checking memory allocations'
8 url='https://github.com/socketry/rspec-memory'
11 checkdepends=(ruby-covered ruby-rake)
13 source=(https://github.com/socketry/rspec-memory/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('4fcbf51cd43844293e4397ead2a3e79a80ca2760b810bf83d4804d6e41abdeb1')
17 cd rspec-memory-$pkgver
18 sed -r -e 's|~>|>=|g' -i rspec-memory.gemspec
19 echo gemspec > gems.rb
23 local _gemdir="$(gem env gemdir)"
24 cd rspec-memory-$pkgver
25 gem build rspec-memory.gemspec
29 --ignore-dependencies \
31 --install-dir "tmp_install/$_gemdir" \
32 --bindir "tmp_install/usr/bin" \
33 rspec-memory-$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)"
50 cd rspec-memory-$pkgver
51 GEM_HOME="tmp_install/$_gemdir" rspec
55 cd rspec-memory-$pkgver
56 cp -a tmp_install/* "$pkgdir"/