desktop/ruby-rack/PKGBUILD

21 lines
843 B
Bash
Raw Normal View History

2013-05-27 15:44:31 +08:00
pkgname=ruby-rack
2015-08-01 18:41:13 +08:00
pkgver=1.6.4
2015-03-25 16:52:55 +08:00
pkgrel=1
2013-05-27 15:44:31 +08:00
pkgdesc="Rack provides minimal, modular and adaptable interface for developing web applications in Ruby"
arch=(any)
2015-03-25 16:52:55 +08:00
url="http://rack.github.io/"
2013-05-27 15:44:31 +08:00
license=('MIT')
2015-03-25 16:52:55 +08:00
depends=('ruby')
2013-05-27 15:44:31 +08:00
noextract=("rack-$pkgver.gem")
source=(http://gems.rubyforge.org/gems/rack-$pkgver.gem)
2015-08-01 18:41:13 +08:00
sha512sums=('304a6ae21bfd38008fd7d147f82c44397f3a1d2e689bd01de689aedc6ea0e8784605207fd314bc796974edc5dfcab81636664ea2becb0489302999f99501d41a')
2013-05-27 15:44:31 +08:00
package() {
cd $srcdir
export HOME=/tmp
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" rack-$pkgver.gem
mkdir -p $pkgdir/usr/share/licenses/ruby-rack
ln -s `find $pkgdir/usr/lib/ruby/ -type f -name COPYING | sed "s|$pkgdir||"` $pkgdir/usr/share/licenses/ruby-rack/COPYING
}