blob: 9f67998f1e82c254a88372a2366fd1d26a5eff8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
_gemname=unicorn
pkgname=ruby-unicorn
pkgver=4.4.0
pkgrel=4
pkgdesc="Unicorn is an HTTP server for Rack applications"
url="http://unicorn.bogomips.org"
arch="all"
license="MIT"
depends="ruby ruby-kgio ruby-rack ruby-raindrops"
depends_dev="ruby-dev"
makedepends="$depends_dev ruby-gems"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem
redmine.conf.rb.sample
unicorn.initd
unicorn.confd"
_builddir="$srcdir"/$_realname-$pkgver
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
install -Dm644 "$srcdir"/$_gemname.confd \
"$pkgdir"/etc/conf.d/$_gemname
install -D -m755 "$srcdir"/$_gemname.initd \
"$pkgdir"/etc/init.d/$_gemname
# install sample redmine config
install -D -m644 "$srcdir"/redmine.conf.rb.sample \
"$pkgdir"/etc/unicorn/redmine.conf.rb.sample
}
md5sums="00f52cd67c3ed7a7e0672104c6df9d7a unicorn-4.4.0.gem
416e6d6c3e5f9f191d1e8c3975b0d4f5 redmine.conf.rb.sample
3b788ff54077428658e7044fb54c8364 unicorn.initd
0745d4e1605ff961c83773613c68347d unicorn.confd"
|