[arch-commits] Commit in ruby-mime-types/repos (2 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Sat Jan 11 12:23:35 UTC 2014


    Date: Saturday, January 11, 2014 @ 13:23:34
  Author: alucryd
Revision: 103762

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

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

Copied: ruby-mime-types/repos/community-staging-any/PKGBUILD (from rev 103760, ruby-mime-types/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2014-01-11 12:23:34 UTC (rev 103762)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Alexsandr Pavlov <kidoz at mail.ru>
+
+pkgname=ruby-mime-types
+pkgver=2.0
+pkgrel=2
+pkgdesc='MIME Content-Type database'
+arch=('any')
+url='http://mime-types.rubyforge.org'
+license=('GPL2' 'MIT' 'PerlArtistic')
+depends=('ruby')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('d3e53ba4162d4ee93ce75e644c7fca5503fad1c512277b9ca80ad43aa8103ae0')
+
+prepare() {
+  gem install --no-{document,user-install} --ignore-dependencies -i . ${pkgname#*-}-${pkgver}.gem
+}
+
+package() {
+  cd gems/${pkgname#*-}-${pkgver}
+
+  local _rubyver="$(ruby --version | sed 's/.* \(.*\..*\..*\)p.*/\1/')"
+
+  install -dm 755 "${pkgdir}"/usr/lib/ruby/{gems/${_rubyver},vendor_ruby}
+  mv lib "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}
+
+# Gem compatibility
+  mv ../../specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/
+
+# License
+  install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
+  install -m 644 {,"${pkgdir}"/usr/share/licenses/${pkgname}/}Licence.rdoc
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list