summaryrefslogtreecommitdiff
path: root/social/ruby-headers
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-02-14 17:21:27 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-02-14 17:21:27 -0300
commit568929c75b5a62756a0b984709e7db8795c6bcdf (patch)
tree076a408a7442a9a08c2b19f4d3eca196bd9f1a9a /social/ruby-headers
parent4253d9d631fb5aec2e5621169816601a727ca38f (diff)
downloadabslibre-568929c75b5a62756a0b984709e7db8795c6bcdf.tar.gz
abslibre-568929c75b5a62756a0b984709e7db8795c6bcdf.tar.bz2
abslibre-568929c75b5a62756a0b984709e7db8795c6bcdf.zip
[social] repo
Diffstat (limited to 'social/ruby-headers')
-rw-r--r--social/ruby-headers/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/social/ruby-headers/PKGBUILD b/social/ruby-headers/PKGBUILD
new file mode 100644
index 000000000..b7ef76edc
--- /dev/null
+++ b/social/ruby-headers/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Hilton Medeiros <medeiros.hilton at gmail dot com>
+
+pkgname=ruby-headers
+_pkgname=ruby
+pkgver=1.9.2_p136
+_pkgver=1.9.2-p136
+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=("http://ftp.ruby-lang.org/pub/ruby/1.9/$_pkgname-$_pkgver.tar.bz2")
+md5sums=('52958d35d1b437f5d9d225690de94c13')
+
+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"
+}