updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / ruby-mongrel / PKGBUILD
blobadefc65bfd61ee205f11b7a5635a1e11d90be180
1 # Contributor: gem2arch 0.1
2 pkgname=ruby-mongrel
3 pkgver=1.1.5
4 _realname="mongrel"
5 pkgrel=4
6 pkgdesc="A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps."
7 arch=(any)
8 url="http://gemcutter.org/gems/mongrel"
9 license=("GPL")
10 depends=('ruby' 'ruby-daemons' 'ruby-cgi_multipart_eof_fix' 'ruby-echoe' 'ruby-gemcutter' 'ruby-json_pure' 'ruby-gem_plugin' 'ruby-fastthread')
11 makedepends=('git')
13 _gitroot="http://github.com/taf2/mongrel.git"
15 build() {
16         local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
17         cd "$srcdir"
19         msg "Connecting to GIT server...."
21         if [ -d $_realname ] ; then
22                         cd $_realname && git pull origin
23                         msg "The local files are updated."
24         else
25                         git clone $_gitroot $_realname
26                         cd $_realname
27         fi
29         msg "GIT checkout done or server timeout"
31         ruby setup.rb config
32         rake gem
33         cd pkg
34         gem install --ignore-dependencies "${_realname}" -l -i "$pkgdir$_gemdir"