[arch-commits] Commit in ruby-polyglot/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 26 00:12:45 UTC 2019
Date: Thursday, December 26, 2019 @ 00:12:44
Author: felixonmars
Revision: 541539
archrelease: copy trunk to community-staging-any
Added:
ruby-polyglot/repos/community-staging-any/
ruby-polyglot/repos/community-staging-any/PKGBUILD
(from rev 541538, ruby-polyglot/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: ruby-polyglot/repos/community-staging-any/PKGBUILD (from rev 541538, ruby-polyglot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-12-26 00:12:44 UTC (rev 541539)
@@ -0,0 +1,27 @@
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Guilherme Nogueira <guilherme at nirev.org>
+
+pkgname=ruby-polyglot
+pkgver=0.3.5
+pkgrel=7
+pkgdesc='Allows custom language loaders to be hooked into require'
+arch=('any')
+url='http://polyglot.rubyforge.org/'
+license=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=("https://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