1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=fd85e1cb2375767e3cbc4b5743ff50061e8a6c75
7 pkgdesc='The Listen gem listens to file modifications and notifies you about the changes.'
9 url='https://github.com/guard/listen'
11 depends=(ruby-rb-fsevent ruby-rb-inotify)
13 checkdepends=(ruby-rake ruby-rspec ruby-thor)
15 source=(git+https://github.com/guard/listen.git#commit=$_commit)
20 sed -i '/[cC]overalls/d' spec/spec_helper.rb
24 local _gemdir="$(gem env gemdir)"
26 gem build listen.gemspec
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 CI=true GEM_HOME="tmp_install/$_gemdir" rake
57 cp -a tmp_install/* "$pkgdir"/
58 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/