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

Maxime Gauduin alucryd at nymeria.archlinux.org
Sat Jan 11 12:25:07 UTC 2014


    Date: Saturday, January 11, 2014 @ 13:25:07
  Author: alucryd
Revision: 103764

archrelease: copy trunk to community-staging-any

Added:
  ruby-polyglot/repos/community-staging-any/
  ruby-polyglot/repos/community-staging-any/PKGBUILD
    (from rev 103763, ruby-polyglot/trunk/PKGBUILD)

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

Copied: ruby-polyglot/repos/community-staging-any/PKGBUILD (from rev 103763, ruby-polyglot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2014-01-11 12:25:07 UTC (rev 103764)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Guilherme Nogueira <guilherme at nirev.org>
+
+pkgname=ruby-polyglot
+pkgver=0.3.3
+pkgrel=3
+pkgdesc='Allows custom language loaders to be hooked into require'
+arch=('any')
+url='http://polyglot.rubyforge.org/'
+license=('MIT')
+depends=('ruby')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('1b0026fa0ce5aef4a65199ff3f5c589a4865265cd1f2f053eb6c4041a3aa5f20')
+
+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}/}License.txt
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list