summaryrefslogtreecommitdiff
path: root/social/ruby-headers/PKGBUILD
blob: 73b85c3c10fe662d627ce1352e671c94552dcd02 (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
27
28
29
30
# Maintainer: fauno <fauno@kiwwwi.com.ar>
# Contributor: Hilton Medeiros <medeiros.hilton at gmail dot com>

pkgname=ruby-headers
_pkgname=ruby
pkgver=1.9.2_p180
_pkgver=1.9.2-p180
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=('custom')
depends=('ruby')
source=("ftp://ftp.ruby-lang.org/pub/ruby/1.9/$_pkgname-$_pkgver.tar.bz2")

build() {
  /bin/true
}

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

  # Just to make sure, since currently we have /usr/include/ruby-1.9.1 for ruby 1.9.2
  _hdrdir=`ruby -e "require 'rbconfig'; puts Config::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=('68510eeb7511c403b91fe5476f250538')