Date: Monday, January 7, 2019 @ 01:05:28 Author: felixonmars Revision: 420823
archrelease: copy trunk to community-staging-any Added: ruby-mime-types/repos/community-staging-any/ ruby-mime-types/repos/community-staging-any/PKGBUILD (from rev 420821, ruby-mime-types/trunk/PKGBUILD) ----------+ PKGBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) Copied: ruby-mime-types/repos/community-staging-any/PKGBUILD (from rev 420821, ruby-mime-types/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2019-01-07 01:05:28 UTC (rev 420823) @@ -0,0 +1,27 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> +# Contributor: Alexsandr Pavlov <ki...@mail.ru> + +pkgname=ruby-mime-types +pkgver=3.2.2 +pkgrel=2 +pkgdesc='MIME Content-Type database' +arch=('any') +url='http://mime-types.rubyforge.org' +license=('GPL2' 'MIT' 'PerlArtistic') +depends=('ruby' 'ruby-mime-types-data') +options=('!emptydirs') +source=("https://rubygems.org/downloads/mime-types-${pkgver}.gem") +noextract=("mime-types-${pkgver}.gem") +sha256sums=('93f308f0b6754b0ca50dd1982b817f65b8946f6a34bd3db6bd3d8a5265f05d3a') + +package() { + local _gemdir="$(ruby -e'puts Gem.default_dir')" + + gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} mime-types-${pkgver}.gem + find "${pkgdir}" -type f -name *.gem -delete + + install -dm 755 "${pkgdir}"/usr/share/licenses/ruby-mime-types + ln -s ${_gemdir}/gems/mime-types-${pkgver}/Licence.rdoc "${pkgdir}"/usr/share/licenses/ruby-mime-types/ +} + +# vim: ts=2 sw=2 et: