1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc='The instafailing RSpec progress bar formatter'
8 url='https://github.com/thekompanee/fuubar'
10 depends=(ruby-rspec-core ruby-ruby-progressbar)
11 checkdepends=(ruby-rspec)
13 source=(https://github.com/thekompanee/fuubar/archive/releases/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('0188e92c6b8582c3bad9de2d8584d46c47b3ed3550648e9b591149605b6d4b06')
17 cd fuubar-releases-v$pkgver
18 sed -e 's/~>/>=/' -e '/signing_key/d' -i fuubar.gemspec
22 local _gemdir="$(gem env gemdir)"
23 cd fuubar-releases-v$pkgver
24 gem build fuubar.gemspec
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
48 local _gemdir="$(gem env gemdir)"
49 cd fuubar-releases-v$pkgver
50 GEM_HOME="tmp_install/$_gemdir" rspec
54 cd fuubar-releases-v$pkgver
55 cp -a tmp_install/* "$pkgdir"/
56 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/