desktop/ruby-rack/PKGBUILD
2015-03-25 08:52:55 +00:00

24 lines
891 B
Bash

# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
pkgname=ruby-rack
pkgver=1.6.0
pkgrel=1
pkgdesc="Rack provides minimal, modular and adaptable interface for developing web applications in Ruby"
arch=(any)
url="http://rack.github.io/"
license=('MIT')
depends=('ruby')
noextract=("rack-$pkgver.gem")
source=(http://gems.rubyforge.org/gems/rack-$pkgver.gem)
sha256sums=('6b6941d48013bc605538fc453006a9df18114ddf0757a3cd69cfbd5c3b72a7b8')
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
}