[arch-commits] Commit in ruby-polyglot/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Dec 28 21:51:09 UTC 2015
Date: Monday, December 28, 2015 @ 22:51:09
Author: foutrelis
Revision: 154717
archrelease: copy trunk to community-staging-any
Added:
ruby-polyglot/repos/community-staging-any/
ruby-polyglot/repos/community-staging-any/PKGBUILD
(from rev 154716, ruby-polyglot/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: ruby-polyglot/repos/community-staging-any/PKGBUILD (from rev 154716, ruby-polyglot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-12-28 21:51:09 UTC (rev 154717)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Guilherme Nogueira <guilherme at nirev.org>
+
+pkgname=ruby-polyglot
+pkgver=0.3.5
+pkgrel=3
+pkgdesc='Allows custom language loaders to be hooked into require'
+arch=('any')
+url='http://polyglot.rubyforge.org/'
+license=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('59d66ef5e3c166431c39cb8b7c1d02af419051352f27912f6a43981b3def16af')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+ gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} ${pkgname#*-}-${pkgver}.gem
+ find "${pkgdir}" -type f -name *.gem -delete
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
+ ln -s ${_gemdir}/gems/${pkgname#*-}-${pkgver}/License.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list