Want more features on Pastebin? Sign Up, it's FREE!
Guest

ruby-nanoc 3.6.2-1

By: a guest on Apr 1st, 2013  |  syntax: Bash  |  size: 0.91 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. 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. optdepends=('ruby-adsf: Provides `nanoc view` command.')
  14. provides=('ruby-nanoc3')
  15. source=("http://gems.rubyforge.org/gems/${_gemname}-${pkgver}.gem")
  16. noextract=("${_gemname}-${pkgver}.gem")
  17. md5sums=('086f9d277d73df51125ec79b55001426')
  18. sha1sums=('f6fdc10b4627175f52c1e88e5629aaeda0a6e087')
  19.  
  20. package() {
  21.   cd "${srcdir}"
  22.   export HOME='/tmp'
  23.   local _gemdir="$(ruby -rubygems -e 'puts Gem.default_dir')"
  24.  
  25.   gem install \
  26.     --no-user-install \
  27.     --ignore-dependencies \
  28.     --install-dir "${pkgdir}${_gemdir}" \
  29.     --bindir "${pkgdir}/usr/bin" \
  30.     "${_gemname}-${pkgver}.gem"
  31. }
clone this paste RAW Paste Data