1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-opengl # All lowercase
5 pkgdesc="Is software that lets you write OpenGL programs in Ruby"
7 url="http://rubyforge.org/projects/ruby-opengl"
9 depends=(ruby ruby-mkrf freeglut) # Gem may depend on other gems as well (you can get dependency information from the yaml specification)
10 source=(http://gems.rubyforge.org/gems/ruby-opengl-$pkgver.gem)
11 noextract=(ruby-opengl-$pkgver.gem)
12 md5sums=('fb75942c535816b34f2ed5b8302b49f1')
16 # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
17 # makepkg will barf when sourcing the PKGBUILD
18 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
20 gem install --ignore-dependencies -i "$pkgdir$_gemdir" ruby-opengl-$pkgver.gem
23 # vim:set ts=2 sw=2 et: