diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-15 20:59:24 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-15 20:59:24 -0500 |
commit | 49eec46aeb12ce8e0d269ef9a04d48b64b0b5628 (patch) | |
tree | 1a838ded7247ea89222f258443102446445b1c4a /pcr/ruby-headers | |
parent | 3e6467f21d721bd98fa72ec5b842a673f3d60549 (diff) | |
download | abslibre-49eec46aeb12ce8e0d269ef9a04d48b64b0b5628.tar.gz abslibre-49eec46aeb12ce8e0d269ef9a04d48b64b0b5628.tar.bz2 abslibre-49eec46aeb12ce8e0d269ef9a04d48b64b0b5628.zip |
Adding packages to pcr
Diffstat (limited to 'pcr/ruby-headers')
-rw-r--r-- | pcr/ruby-headers/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/ruby-headers/PKGBUILD b/pcr/ruby-headers/PKGBUILD new file mode 100644 index 000000000..855c7ff38 --- /dev/null +++ b/pcr/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_p385 +_pkgver=1.9.3-p385 +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() { + /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=('5ec9aff670f4912b0f6f0e11e855ef6c') |