Date: Wednesday, January 3, 2018 @ 07:56:44
  Author: foutrelis
Revision: 277987

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 277986, ruby-mime-types/trunk/PKGBUILD)

----------+
 PKGBUILD |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Copied: ruby-mime-types/repos/community-staging-any/PKGBUILD (from rev 277986, 
ruby-mime-types/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2018-01-03 07:56:44 UTC (rev 277987)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Maxime Gauduin <aluc...@archlinux.org>
+# Contributor: Alexsandr Pavlov <ki...@mail.ru>
+
+pkgname=ruby-mime-types
+pkgver=3.1
+pkgrel=3
+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=("http://rubygems.org/downloads/mime-types-${pkgver}.gem";)
+noextract=("mime-types-${pkgver}.gem")
+sha256sums=('75949321c3f55e6618d0596016059841c26168342ec1ee4e641053bb66fa0701')
+
+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:

Reply via email to