[arch-commits] Commit in ruby-tins/repos (2 files)
Maxime Gauduin
alucryd at nymeria.archlinux.org
Sat Jan 11 12:27:30 UTC 2014
Date: Saturday, January 11, 2014 @ 13:27:30
Author: alucryd
Revision: 103766
archrelease: copy trunk to community-staging-any
Added:
ruby-tins/repos/community-staging-any/
ruby-tins/repos/community-staging-any/PKGBUILD
(from rev 103765, ruby-tins/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: ruby-tins/repos/community-staging-any/PKGBUILD (from rev 103765, ruby-tins/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2014-01-11 12:27:30 UTC (rev 103766)
@@ -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.13.1
+pkgrel=1
+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=('c53bf237462be8d61cfa2a5f4b48f372d010825b0dc594c952d9857fe4c3ef30')
+
+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