updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby-headers / PKGBUILD
blobaa00d8d2c0f24829aef580aa00dabe7ffc2b76c7
1 # Maintainer: fauno <fauno@kiwwwi.com.ar>
2 # Contributor: Hilton Medeiros <medeiros.hilton at gmail dot com>
4 pkgname=ruby-headers
5 _pkgname=ruby
6 pkgver=1.9.3_p0
7 _pkgver=1.9.3-p0
8 pkgrel=1
9 pkgdesc="A package of all Ruby headers needed by some gems like ruby-debug."
10 arch=('any')
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')
17 build() {
18   /bin/true
21 package() {
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"