[arch-commits] Commit in ruby-rainbow/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sat Sep 12 18:56:20 UTC 2015


    Date: Saturday, September 12, 2015 @ 20:56:20
  Author: anthraxx
Revision: 139995

archrelease: copy trunk to community-any

Added:
  ruby-rainbow/repos/community-any/
  ruby-rainbow/repos/community-any/PKGBUILD
    (from rev 139994, ruby-rainbow/trunk/PKGBUILD)

----------+
 PKGBUILD |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Copied: ruby-rainbow/repos/community-any/PKGBUILD (from rev 139994, ruby-rainbow/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-09-12 18:56:20 UTC (rev 139995)
@@ -0,0 +1,28 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux AT free DOT fr>
+# Contributor: Juan Diego Tascon
+# Contributor: Tom Vincent <http://tlvince.com/contact/>
+
+_gemname=rainbow
+pkgname=ruby-${_gemname}
+pkgver=2.0.0
+pkgrel=3
+pkgdesc="Rainbow is extension to ruby's String class adding support for colorizing text on ANSI terminal"
+url='https://rubygems.org/gems/rainbow'
+arch=('any')
+license=('GPL2')
+depends=('ruby')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('be2c96af48b3e423fd036762f0b496e977727140174e469afd672af0f47c0047a93618b1f792960250b4597da679d31161e29aa412d4ef2f94d8e96102de08ef')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+  install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/README.markdown" "${pkgdir}/usr/share/doc/${pkgname}/README"
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list