summaryrefslogtreecommitdiff
path: root/pcr/ruby-headers/PKGBUILD
blob: 074205e79f59283d4f1a15b3a3e6af38e8ec54fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: fauno <fauno@kiwwwi.com.ar>
# Contributor: Hilton Medeiros <medeiros.hilton at gmail dot com>

pkgname=ruby-headers
_pkgname=ruby
pkgver=2.0.0_p0
_pkgver=2.0.0-p0
pkgrel=1
pkgdesc="A package of all Ruby headers needed by some gems like ruby-debug."
arch=('any')
url="http://www.ruby-lang.org/en/"
license=('GPL2' 'custom:Ruby')
depends=("ruby=$pkgver")
source=("http://ftp.ruby-lang.org/pub/ruby/2.0/$_pkgname-$_pkgver.tar.bz2")

package() {
  cd "$srcdir/$_pkgname-$_pkgver"

  _hdrdir=`ruby -e "require 'rbconfig'; puts RbConfig::CONFIG['rubyhdrdir']"`

  install -d "$pkgdir$_hdrdir/$_pkgname-$_pkgver"
  install -m644 *.{h,inc} "$pkgdir$_hdrdir/$_pkgname-$_pkgver"
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

md5sums=('895c1c581f8d28e8b3bb02472b2ccf6a')