1 # Maintainer: David Runge <dvzrv@archlinux.org>
7 pkgdesc="New wave internationalisation support for Ruby"
9 url="https://github.com/ruby-i18n/i18n"
11 depends=(ruby ruby-concurrent)
12 makedepends=(ruby-rdoc)
13 checkdepends=(ruby-bundler ruby-activesupport ruby-json ruby-minitest ruby-mocha ruby-rake ruby-test_declarative)
15 source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$_name/archive/v$pkgver.tar.gz)
16 sha512sums=('616db5b15febc7a8716ceafef6c51a24e2d050f8e27e389ef96d94cdc95f9704942079d1e6b502666a015a99deee169342482c9a808164700401c47f96da8f0d')
17 b2sums=('6818e5bdea156e9b6f7b33e319e5b5a5c3c9e7a799b56ded87ab2e27efa4effe730e23a8736b7374b8072c7ba4237a92619aeaad3a16c0bfe10fe73bf9c588d6')
21 # we do not do version pinning
22 sed -e 's,~>,>=,g' -i *.gemspec Gemfile Rakefile
23 # lockfiles should be removed
25 # do not rely on Gemfiles (unless the project *really* needs it)
32 gem build $_name.gemspec
41 local _gemdir="$(gem env gemdir)"
45 --ignore-dependencies \
47 --install-dir "$pkgdir/$_gemdir" \
48 --bindir "$pkgdir/usr/bin" \
51 # remove unrepreducible files
53 "$pkgdir/$_gemdir/cache/" \
54 "$pkgdir/$_gemdir/gems/$_name-$pkgver/vendor/" \
55 "$pkgdir/$_gemdir/doc/$_name-$pkgver/ri/ext/"
57 find "$pkgdir/$_gemdir/gems/" \
64 -iname "gem.build_complete" -o \
69 find "$pkgdir/$_gemdir/extensions/" \
72 -iname "mkmf.log" -o \
73 -iname "gem_make.out" \
77 install -vDm 644 MIT-LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"