[arch-commits] Commit in ruby-tins (3 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Fri Sep 27 08:29:17 UTC 2013


    Date: Friday, September 27, 2013 @ 10:29:17
  Author: alucryd
Revision: 97682

archrelease: copy trunk to community-any

Added:
  ruby-tins/repos/
  ruby-tins/repos/community-any/
  ruby-tins/repos/community-any/PKGBUILD
    (from rev 97681, ruby-tins/trunk/PKGBUILD)

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

Copied: ruby-tins/repos/community-any/PKGBUILD (from rev 97681, ruby-tins/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2013-09-27 08:29:17 UTC (rev 97682)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Julien Nicoulaud <julien.nicoulaud at gmail.com>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
+
+pkgname=ruby-tins
+pkgver=0.10.0
+pkgrel=2
+pkgdesc="All the stuff that isn't good/big enough for a real library"
+arch=('any')
+url="https://github.com/flori/tins"
+license=('MIT')
+depends=('ruby')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('b6cc4ea8c05cc5949326b6ff6205d4d8369835d9b7e5694e1a05888e4cccd5a2')
+
+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}/}COPYING
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list