blob: 9447bb22201ec27d9e76f7bb42d6314f0f9628b1 (
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
|
# Maintainer: Grey Christoforo <first name at last name dot net>
# Generated by gem2arch (https://github.com/anatol/gem2arch)
_gemname=sinatra
pkgname=ruby-$_gemname
pkgver=2.1.0
pkgrel=1
pkgdesc='Classy web-development dressed in a DSL'
arch=(any)
url='http://www.sinatrarb.com/'
# Changelog: https://github.com/sinatra/sinatra/blob/master/CHANGELOG.md
license=(MIT)
depends=(ruby ruby-rack ruby-tilt ruby-rack-protection ruby-mustermann)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
b2sums=('0cfd37b13201cdad120cbfd880d75ae1b8dcb7af3933933697d6dbcbe908d2883b3d8f6024438ec265a1083e1669530f2dcad0bde7d7b27116ab8ecbc12d7b17')
package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
# Make sure to use --no-ri --no-rdoc as for some reason, installing the doc
# take an unexpeted of time. This bug is known:
# https://github.com/sinatra/sinatra/issues/1082
gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem --no-document
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|