blob: c074426ba7598fb0a06eaf89a85b0001f4b535fe (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=sinatra
pkgname=ruby-$_gemname
pkgver=1.4.3
pkgrel=1
pkgdesc="Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort."
url="https://rubygems.org/gems/sinatra"
arch="noarch"
license="GPL"
depends="ruby ruby-tilt ruby-rack ruby-rack-protection"
depends_dev=
makedepends="$depends_dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
_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
}
md5sums="669eeccc2d8ab4931668eaa555ca2e64 sinatra-1.4.3.gem"
sha256sums="1561dfa634e54e37a1d0cea2291a64f2d2dae34c1c4e875ab8e87b9df9b938a9 sinatra-1.4.3.gem"
sha512sums="b7021f0138abbf69fa276f0a84000f66cf320ab03d0c13073070f9976917232d3b6204660bfa1e8cbe3f43de35b023480d77555b79c31380eba8c4144a9153de sinatra-1.4.3.gem"
|