summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed7794390788a821a0133f433d891256d3923470 (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
# Generated by gem2arch (https://github.com/anatol/gem2arch)

_gemname=sinatra
pkgname=ruby-$_gemname-4
pkgver=4.0.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-4 ruby-mustermann ruby-rack-session)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
b2sums=('f43eda7572ba6e60902aca5680a171c06525e7acb7f928af90f3246eaf635ccca7a3a8b15cdef4ad0c25c184d586669713f0be0581789438c0b264d7c2a2410d')

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"
}