SHARE
TWEET

Untitled

a guest Aug 8th, 2011 75 Never
  1. # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
  2. pkgname=ruby-rake-compiler
  3. pkgver=0.7.9
  4. pkgrel=1
  5. pkgdesc="Provide a standard and simplified way to build and package Ruby extensions (C, Java) using Rake as glue."
  6. arch=(any)
  7. url="http://github.com/luislavena/rake-compiler"
  8. license=('MIT')
  9. depends=('ruby')
  10. makedepends=(rubygems)
  11. source=(http://gems.rubyforge.org/gems/rake-compiler-$pkgver.gem)
  12. noextract=(rake-compiler-$pkgver.gem)
  13.  
  14. build() {
  15.     cd $srcdir
  16.     # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
  17.     # makepkg will exit with an error when sourcing the PKGBUILD
  18.     local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
  19.  
  20.     gem install --ignore-dependencies -i "$pkgdir$_gemdir" rake-compiler-$pkgver.gem
  21.  
  22.     mv -t $pkgdir/usr/ $pkgdir$_gemdir/bin
  23. }
  24.  
  25. md5sums=('ca229b3cb7797e0f189eccfd98aecdb4')
RAW Paste Data
Top