summaryrefslogtreecommitdiff
path: root/social/ruby-headers
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
commit8185891e28635bdb83fdf4ba4391030912dae596 (patch)
tree66a946535bdd228514750233b2cc99dd1866ff64 /social/ruby-headers
parent60a11f87366fdfbd114cdc91ff813518858e5f8d (diff)
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'social/ruby-headers')
-rw-r--r--social/ruby-headers/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/social/ruby-headers/PKGBUILD b/social/ruby-headers/PKGBUILD
new file mode 100644
index 000000000..d68e97781
--- /dev/null
+++ b/social/ruby-headers/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: fauno <fauno@kiwwwi.com.ar>
+# Contributor: Hilton Medeiros <medeiros.hilton at gmail dot com>
+
+pkgname=ruby-headers
+_pkgname=ruby
+pkgver=1.9.3_p392
+_pkgver=1.9.3-p392
+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/1.9/$_pkgname-$_pkgver.tar.bz2")
+
+build() {
+ :
+}
+
+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=('a810d64e2255179d2f334eb61fb8519c')