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

Levente Polyak anthraxx at archlinux.org
Wed Jan 27 15:51:06 UTC 2016


    Date: Wednesday, January 27, 2016 @ 16:51:06
  Author: anthraxx
Revision: 159267

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-27 15:51:01 UTC (rev 159266)
+++ PKGBUILD	2016-01-27 15:51:06 UTC (rev 159267)
@@ -1,28 +0,0 @@
-# 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=4
-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:

Copied: ruby-rainbow/repos/community-any/PKGBUILD (from rev 159266, ruby-rainbow/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-01-27 15:51:06 UTC (rev 159267)
@@ -0,0 +1,37 @@
+# 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.1.0
+pkgrel=1
+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=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sickill/rainbow/archive/v${pkgver}.tar.gz)
+sha512sums=('cf3a280301f98c48d9fd52e95c6bcf41fcf4ff9322627ac09a94abb5dd94f56377e62c5d060065c2b97a427d46d5231db74a77aadc4289e43a5ebf3a19777aa1')
+
+prepare() {
+  cd ${_gemname}-${pkgver}
+  sed -r 's|git ls-files|find|g' -i rainbow.gemspec
+}
+
+build() {
+  cd ${_gemname}-${pkgver}
+  gem build rainbow.gemspec
+}
+
+package() {
+  cd ${_gemname}-${pkgver}
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" rainbow*.gem
+  install -Dm 644 README.markdown Changelog.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list