[arch-commits] Commit in ruby-term-ansicolor/repos (2 files)
Maxime Gauduin
alucryd at nymeria.archlinux.org
Sat Jan 11 12:29:05 UTC 2014
Date: Saturday, January 11, 2014 @ 13:29:05
Author: alucryd
Revision: 103768
archrelease: copy trunk to community-staging-any
Added:
ruby-term-ansicolor/repos/community-staging-any/
ruby-term-ansicolor/repos/community-staging-any/PKGBUILD
(from rev 103767, ruby-term-ansicolor/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: ruby-term-ansicolor/repos/community-staging-any/PKGBUILD (from rev 103767, ruby-term-ansicolor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2014-01-11 12:29:05 UTC (rev 103768)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
+# Contributor: Hilton Medeiros <medeiros.hilton at gmail.com>
+
+pkgname=ruby-term-ansicolor
+pkgver=1.2.2
+pkgrel=4
+pkgdesc='A ruby library that colors strings using ANSI escape sequences'
+arch=('any')
+url='https://rubygems.org/gems/term-ansicolor'
+license=('GPL2')
+depends=('ruby-tins')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('b9534713ba4c2a48f2291fadf9ce2edae9f2dc96157ee812fe8fe16a70c081ac')
+
+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 bin "${pkgdir}"/usr/
+ mv lib "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}
+
+# Gem compatibility
+ mv ../../specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/
+
+# Prevent conflict with colordiff
+ rm "${pkgdir}"/usr/bin/cdiff
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list