1 # Maintainer: fauno <fauno@kiwwwi.com.ar>
2 # Contributor: Hilton Medeiros <medeiros.hilton at gmail dot com>
9 pkgdesc="A package of all Ruby headers needed by some gems like ruby-debug."
11 url="http://www.ruby-lang.org/en/"
12 license=('GPL2' 'custom:Ruby')
13 depends=("ruby=$pkgver")
14 source=("http://ftp.ruby-lang.org/pub/ruby/1.9/$_pkgname-$_pkgver.tar.bz2")
15 md5sums=('65401fb3194cdccd6c1175ab29b8fdb8')
22 cd "$srcdir/$_pkgname-$_pkgver"
24 # Just to make sure, since currently we have /usr/include/ruby-1.9.1 for ruby 1.9.2
25 _hdrdir=`ruby -e "require 'rbconfig'; puts Config::CONFIG['rubyhdrdir']"`
27 install -d "$pkgdir$_hdrdir/$_pkgname-$_pkgver"
28 install -m644 *.{h,inc} "$pkgdir$_hdrdir/$_pkgname-$_pkgver"
29 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"