1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-mime-types
3 _gemname=${pkgname#ruby-}
6 pkgdesc="Manages a MIME Content-Type database that will return the Content-Type for a given filename."
8 url="http://mime-types.rubyforge.org"
10 depends=('ruby' 'rubygems')
11 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
12 noextract=(${_gemname}-${pkgver}.gem)
13 md5sums=('ecc7a90a252de99a164d86b4a154da67')
18 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
19 gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" ${_gemname}-${pkgver}.gem