Posted By

UR6LAD on 07/13/11


Tagged

ruby pkgbuild


Versions (?)

New ruby builder PKGBUILD for AUR


 / Published in: Bash
 

URL: https://aur.archlinux.org/packages.php?ID=33874

Add bin folder

  1. # Maintainer: TDY <[email protected]>
  2.  
  3. pkgname=ruby-builder
  4. pkgver=2.1.2
  5. pkgrel=2
  6. pkgdesc="A simple Ruby library to create XML markup and data structures"
  7. arch=('any')
  8. url="http://rubyforge.org/projects/builder/"
  9. license=('custom')
  10. depends=('ruby')
  11. source=(http://rubyforge.org/frs/download.php/21724/${pkgname/*-}-$pkgver.gem
  12. COPYING)
  13. md5sums=('e96a525d9e0b42a2e2d5e77cbd02eb72'
  14. '3297ed4fef4ba0b51008fb0f4c02728b')
  15.  
  16. build() {
  17. install -m755 -d "${pkgdir}/usr/bin"
  18. cd "$srcdir"
  19. local _gemdir="$(ruby -rubygems -e 'puts Gem.default_dir')"
  20. gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" \
  21. ${pkgname/*-}-$pkgver.gem -n "${pkgdir}/usr/bin"
  22. install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  23. }

Report this snippet  

You need to login to post a comment.