1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-bake-modernize
5 _commit=3b5f52f85ba3786d5e7d15dbb08446e503eabf52
7 pkgdesc='Automatically modernize parts of your project/gem'
9 url='https://github.com/ioquatix/bake-modernize'
11 depends=(ruby-async-http ruby-bake ruby-build-files ruby-markly ruby-rugged)
13 checkdepends=(ruby-sus ruby-bake-test git)
15 source=(git+https://github.com/ioquatix/bake-modernize.git#commit=$_commit)
20 sed -i -e '/signing_key/d' -e 's/~>/>=/' bake-modernize.gemspec
21 echo -e 'gemspec\ngem "bake-test"' > gems.rb
25 local _gemdir="$(gem env gemdir)"
27 gem build bake-modernize.gemspec
31 --ignore-dependencies \
33 --install-dir "tmp_install/$_gemdir" \
34 --bindir "tmp_install/usr/bin" \
35 bake-modernize-$pkgver.gem
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" bake test
58 cp -a tmp_install/* "$pkgdir"/
59 install -Dm644 license.md -t "$pkgdir"/usr/share/licenses/$pkgname/