[arch-commits] Commit in ruby-tins/repos/community-testing-any (PKGBUILD PKGBUILD)
Maxime Gauduin
alucryd at nymeria.archlinux.org
Sat Jan 25 18:25:38 UTC 2014
Date: Saturday, January 25, 2014 @ 19:25:37
Author: alucryd
Revision: 104751
archrelease: copy trunk to community-testing-any
Added:
ruby-tins/repos/community-testing-any/PKGBUILD
(from rev 104750, ruby-tins/trunk/PKGBUILD)
Deleted:
ruby-tins/repos/community-testing-any/PKGBUILD
----------+
PKGBUILD | 67 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 29 insertions(+), 38 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2014-01-25 18:25:26 UTC (rev 104750)
+++ PKGBUILD 2014-01-25 18:25:37 UTC (rev 104751)
@@ -1,38 +0,0 @@
-# $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:
Copied: ruby-tins/repos/community-testing-any/PKGBUILD (from rev 104750, ruby-tins/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-01-25 18:25:37 UTC (rev 104751)
@@ -0,0 +1,29 @@
+# $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=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')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('c53bf237462be8d61cfa2a5f4b48f372d010825b0dc594c952d9857fe4c3ef30')
+
+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 "${pkgdir}"/${_gemdir}/gems/${pkgname#*-}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list