# Generated by gem2arch (https://github.com/anatol/gem2arch) # Maintainer: Grey Christoforo _gemname=charlock_holmes pkgname=ruby-$_gemname pkgver=0.7.7 pkgrel=1 pkgdesc='Character encoding detection, brought to you by ICU' arch=(i686 x86_64) url='https://github.com/brianmario/charlock_holmes' license=(MIT) depends=(ruby) makedepends=(ruby-rdoc) options=(!emptydirs) source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) noextract=($_gemname-$pkgver.gem) sha1sums=('1f1fecf192fbda28be0f5f6e6a6847741af0a8ff') package() { local _gemdir="$(ruby -e'puts Gem.default_dir')" gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" }