[arch-commits] Commit in ruby-term-ansicolor/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Jan 9 23:33:24 UTC 2017
Date: Monday, January 9, 2017 @ 23:33:24
Author: foutrelis
Revision: 206262
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 206261, ruby-term-ansicolor/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: ruby-term-ansicolor/repos/community-staging-any/PKGBUILD (from rev 206261, ruby-term-ansicolor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2017-01-09 23:33:24 UTC (rev 206262)
@@ -0,0 +1,29 @@
+# $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.4.0
+pkgrel=2
+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')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('6a510f88287c68e6d439695cbd2416399c9189c7e6c501b55cfb98d34d0627bc')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+ gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} -n "${pkgdir}"/usr/bin ${pkgname#*-}-${pkgver}.gem
+ find "${pkgdir}" -type f -name *.gem -delete
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
+ ln -s ${_gemdir}/gems/${pkgname#*-}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list