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

ruby-nanoc 3.6.2-1

By: Ichimonji10 on Mar 31st, 2013  |  syntax: Bash  |  size: 0.86 KB  |  views: 31  |  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-nanoc
  5. _gemname="${pkgname#ruby-}"
  6. pkgver=3.6.2
  7. pkgrel=1
  8. pkgdesc='A simple but very flexible static site generator written in Ruby.'
  9. arch=('any')
  10. url='http://nanoc.ws'
  11. license=('MIT')
  12. depends=('ruby' 'ruby-cri')
  13. provides=('ruby-nanoc3')
  14. source=("http://gems.rubyforge.org/gems/${_gemname}-${pkgver}.gem")
  15. noextract=("${_gemname}-${pkgver}.gem")
  16. md5sums=('086f9d277d73df51125ec79b55001426')
  17. sha1sums=('f6fdc10b4627175f52c1e88e5629aaeda0a6e087')
  18.  
  19. package() {
  20.   cd "${srcdir}"
  21.   export HOME='/tmp'
  22.   local _gemdir="$(ruby -rubygems -e 'puts Gem.default_dir')"
  23.  
  24.   gem install \
  25.     --no-user-install \
  26.     --ignore-dependencies \
  27.     --install-dir "${pkgdir}${_gemdir}" \
  28.     --bindir "${pkgdir}/usr/bin" \
  29.     "${_gemname}-${pkgver}.gem"
  30. }