[arch-commits] Commit in ruby-term-ansicolor/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 26 00:31:21 UTC 2019
Date: Thursday, December 26, 2019 @ 00:31:16
Author: felixonmars
Revision: 541619
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 541618, ruby-term-ansicolor/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: ruby-term-ansicolor/repos/community-staging-any/PKGBUILD (from rev 541618, ruby-term-ansicolor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-12-26 00:31:16 UTC (rev 541619)
@@ -0,0 +1,28 @@
+# 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.6.0
+pkgrel=3
+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=('ebcc930f9f8d564a457285aa4d0be41f8b8e9d9871a339bbc7631f2869c23cac')
+
+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