blob: 238adec32e0aff4a66c13390dd53f1bcbe0a2ba0 (
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
49
50
51
52
53
54
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ruby-puma
_gemname=puma
pkgver=3.2.0
pkgrel=2
pkgdesc="Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server"
url="http://puma.io/"
arch="all"
license="BSD"
depends="ruby"
depends_dev=""
makedepends="$depends_dev ruby-dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem
$_gemname.confd
$_gemname.initd
"
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
mkdir -p "$pkgdir"/usr/bin
ln -s $_gemdir/bin/puma "$pkgdir"/usr/bin/ || return 1
ln -s $_gemdir/bin/pumactl "$pkgdir"/usr/bin/ || return 1
install -Dm644 "$srcdir"/$_gemname.confd \
"$pkgdir"/etc/conf.d/$_gemname || return 1
install -Dm755 "$srcdir"/$_gemname.initd \
"$pkgdir"/etc/init.d/$_gemname || return 1
}
md5sums="e1c66fa8d134bef5cfd680612238d725 puma-3.2.0.gem
623b3b79ca0dbb8c0877024b49c5cbc5 puma.confd
2ce1b6b52c7f138aa0b932a0c79a97da puma.initd"
sha256sums="eca7283e0558c3c6229b169c181973cfe4568a97955bacdeb2de793962b3ebae puma-3.2.0.gem
d386c3d1f4513387c740ef718d2a52bb112d42824af55e412baad885c15becef puma.confd
53566388af2a2567dcac0113d9862196d4fbc884f360d39ae72dd7147e0193b0 puma.initd"
sha512sums="58452a5460295795bb8200a907c87dbad7f173695fddc7d155a492f274a83d353d79d007eb9e88b73249bef1fe3737f006bf10ad2f4266b3dee28a7e8c86dbb8 puma-3.2.0.gem
f90c461f8a257cd7ce91c2d5f621db209d312547ece0a782cdf317c16dc2a49764722df41bffdc1a1e4a44a9711a1c4fed307aea8bb35b8c457d55df2521841d puma.confd
3ae546b1702cb4ebf19a3052722d1754d79ac95089ecb1c42c6fc0dfed8f88aa20ede7a36d47b50e64f83230a4efbdc5f3d4c89798a63ef7fe2de9c1cc7ee5ed puma.initd"
|