1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=73c206174ca02549d120402b9a007db0d0bc9699
7 pkgdesc='Bump your gem version file'
9 url='https://github.com/gregorym/bump'
13 checkdepends=(ruby-byebug ruby-rake ruby-rspec ruby-rubocop)
15 source=(git+https://github.com/gregorym/bump.git#commit=$_commit)
20 git config --global user.email "pony@arch"
21 git config --global user.name "Lucky Pony"
25 local _gemdir="$(gem env gemdir)"
27 gem build bump.gemspec
31 --ignore-dependencies \
33 --install-dir "../tmp_install/$_gemdir" \
34 --bindir "../tmp_install/usr/bin" \
36 find "../tmp_install/$_gemdir/gems/" \
43 -iname "gem.build_complete" -o \
47 rm -r ../tmp_install/$_gemdir/cache
51 local _gemdir="$(gem env gemdir)"
53 GEM_HOME="../tmp_install/$_gemdir" rake spec
58 cp -a ../tmp_install/* "$pkgdir"/
59 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/