# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-i18n _gemname=${pkgname#ruby-} pkgver=0.9.4 pkgrel=0 pkgdesc="New wave Internationalization support for Ruby" url="https://github.com/svenfuchs/i18n" arch="noarch" license="MIT" depends="ruby ruby-concurrent-ruby" options="!check" # tests require additional deps that we don't have yet source="$pkgname-$pkgver.tar.gz::https://github.com/svenfuchs/$_gemname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_gemname-$pkgver" build() { cd "$builddir" gem build $_gemname.gemspec } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" cd "$builddir" gem install --local \ --install-dir "$gemdir" \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname # Remove unnecessary files. cd "$gemdir" rm -r cache/ build_info/ doc/ cd gems/$_gemname-$pkgver rm -r gemfiles/ test/ *.md *LICENSE* } sha512sums="be94ac82831e21f3832f2430b44a63eb316911fcdbba3a4ad706d10c3edbcc9565e1fec5370702bbba776f4a5537e9ee88290507599bbb73b8358eb0ce3b111a ruby-i18n-0.9.4.tar.gz"