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

PKGBUILD - ruby-haml

By: a guest on Jul 31st, 2013  |  syntax: Bash  |  size: 1.03 KB  |  views: 29  |  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. # Contributor: Matt Harrison <matt at mistbyte dot com>
  2. # Contributor: Renzo Carbonara <gnuk0001@gmail.com>
  3.  
  4. pkgname=ruby-haml
  5. _gemname=${pkgname#ruby-}
  6. pkgver=4.0.3
  7. pkgrel=1
  8. pkgdesc="An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine."
  9. arch=('any')
  10. url="http://haml.info/"
  11. license=('MIT')
  12. groups=()
  13. depends=('ruby' 'ruby-yard>=0.5.3' 'ruby-maruku>=0.5.9')
  14. makedepends=()
  15. optdepends=()
  16. provides=()
  17. conflicts=()
  18. replaces=()
  19. backup=()
  20. options=()
  21. install=
  22. source=("http://gems.rubyforge.org/gems/${_gemname}-${pkgver}.gem")
  23. noextract=("${_gemname}-${pkgver}.gem")
  24. md5sums=('d3b89be5c143b7b4ab60a13e1fc1e55d')
  25.  
  26. package() {
  27.   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
  28.   gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \
  29.             -n "$pkgdir/usr/bin" --verbose haml-$pkgver.gem
  30.   install -D -m644 "$pkgdir$_gemdir/gems/haml-$pkgver/MIT-LICENSE" \
  31.              "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  32. }
  33.  
  34. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data