Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

ruby-colored 2.3.0-2

By: Ichimonji10 on Mar 31st, 2013  |  syntax: Bash  |  size: 0.83 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Lucky <archlinux@builds.lucky.li>
  2. # Contributor: Ichimonji10 <ichimonji10@gmail.com>
  3.  
  4. pkgname=ruby-cri
  5. _gemname="${pkgname#ruby-}"
  6. pkgver=2.3.0
  7. pkgrel=2
  8. pkgdesc="Cri is a library for building easy-to-use commandline tools."
  9. url="http://rubygems.org/gems/cri"
  10. license=("MIT")
  11. arch=("any")
  12. depends=("ruby" "ruby-colored")
  13. source=("http://gems.rubyforge.org/gems/${_gemname}-${pkgver}.gem")
  14. noextract=("${_gemname}-${pkgver}.gem")
  15. md5sums=("683e21b47fcfce52194125d6c3b3a428")
  16. sha1sums=("358d4a7f3a45208c4e52356ec36c1ddd6e9f6f75")
  17.  
  18. package() {
  19.   cd "${srcdir}"
  20.   export HOME="/tmp"
  21.   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
  22.  
  23.   gem install \
  24.     --no-user-install \
  25.     --ignore-dependencies \
  26.     --install-dir "${pkgdir}${_gemdir}" \
  27.     --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
  28. }