1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-ruby_memcheck
5 _commit=f4b8fe6140fcd38747a24ea4f99a87f5f56c950a
7 pkgdesc='Use Valgrind memcheck without going crazy'
9 url='https://github.com/Shopify/ruby_memcheck'
11 depends=(valgrind ruby-nokogiri)
12 makedepends=(git ruby-minitest ruby-minitest-parallel_fork ruby-rake ruby-rake-compiler
13 ruby-rspec-core ruby-rubocop)
15 source=(git+https://github.com/Shopify/ruby_memcheck.git#commit=$_commit)
19 local _gemdir="$(gem env gemdir)"
21 gem build ruby_memcheck.gemspec
25 --ignore-dependencies \
27 --install-dir "tmp_install/$_gemdir" \
28 --bindir "tmp_install/usr/bin" \
29 ruby_memcheck-$pkgver.gem
30 find "tmp_install/$_gemdir/gems/" \
37 -iname "gem.build_complete" -o \
41 rm -r tmp_install/$_gemdir/cache
45 local _gemdir="$(gem env gemdir)"
47 GEM_HOME="tmp_install/$_gemdir" rake
52 cp -a tmp_install/* "$pkgdir"/
53 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/