1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc='Bare-Metal Ruby Assertions System Standard'
8 url='https://github.com/rubyworks/brass'
11 checkdepends=(ruby-lemon ruby-rubytest-cli ruby-simplecov)
13 source=(https://github.com/rubyworks/brass/archive/$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('8f3f97e35014753155ccbc91c64543012628cdfebb0593550e46abb78973ee8c')
18 sed -e '1i require "simplecov"' \
19 -e "/cov.coverage_dir/d" \
24 local _gemdir="$(gem env gemdir)"
30 --ignore-dependencies \
32 --install-dir "tmp_install/$_gemdir" \
33 --bindir "tmp_install/usr/bin" \
35 find "tmp_install/$_gemdir/gems/" \
42 -iname "gem.build_complete" -o \
46 rm -r tmp_install/$_gemdir/cache
50 local _gemdir="$(gem env gemdir)"
52 GEM_HOME="tmp_install/$_gemdir" rubytest test
57 cp -a tmp_install/* "$pkgdir"/
58 install -Dm644 COPYING.rdoc -t "$pkgdir"/usr/share/licenses/$pkgname/