# Maintainer: Natanael Copa _gemname=railties pkgname=ruby-${_gemname}4.2 pkgver=4.2.5.2 pkgrel=0 pkgdesc="Rails internals: application bootup, plugins, generators, and rake tasks" url="http://www.rubyonrails.org/" arch="noarch" license="MIT" depends="ruby ruby-actionpack4.2 ruby-activesupport4.2 ruby-rake ruby-thor" depends_dev= makedepends="$depends_dev ruby" install="" subpackages="" source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" build() { return 0 } package() { local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" local _geminstdir=$_gemdir/gems/$_gemname-$pkgver mkdir -p "$pkgdir" || return 1 gem install --local --install-dir "$pkgdir"/$_gemdir \ --ignore-dependencies --verbose --no-rdoc --no-ri \ "$srcdir"/$_gemname-$pkgver.gem || return 1 rm -rf "$pkgdir"/$_gemdir/cache \ "$pkgdir"/$_geminstdir/ext \ "$pkgdir"/$_geminstdir/.require_paths cd "$pkgdir" for i in usr/lib/ruby/gems/*/bin/*; do if [ -e "$i" ]; then mkdir -p "$pkgdir"/usr/bin ln -s /$i "$pkgdir"/usr/bin/ fi done } md5sums="e89156f674088447f22261b3872899a8 railties-4.2.5.2.gem" sha256sums="cfff64cbc0e409341003c35fa2e576e6a8cd8259a9894d09f15c6123be73f146 railties-4.2.5.2.gem" sha512sums="5857debf0518e7f39d4c55bafa207c36106797b1408ac6cb91c7593bd4dc0e4820ec8c4595e2cab56a910d001abf8d455e78d6f9a07b595454a3fde4c536520b railties-4.2.5.2.gem"