[arch-commits] Commit in (4 files)

Tim Meusel bastelfreak at archlinux.org
Wed Feb 24 19:33:57 UTC 2021


    Date: Wednesday, February 24, 2021 @ 19:33:56
  Author: bastelfreak
Revision: 871853

add ruby-sinatra

Added:
  ruby-sinatra/
  ruby-sinatra/repos/
  ruby-sinatra/trunk/
  ruby-sinatra/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Added: ruby-sinatra/trunk/PKGBUILD
===================================================================
--- ruby-sinatra/trunk/PKGBUILD	                        (rev 0)
+++ ruby-sinatra/trunk/PKGBUILD	2021-02-24 19:33:56 UTC (rev 871853)
@@ -0,0 +1,50 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='sinatra'
+pkgname="ruby-${_gemname}"
+pkgver=2.1.0
+pkgrel=2
+pkgdesc='Classy web-development dressed in a DSL'
+arch=('any')
+url='https://github.com/sinatra/sinatra'
+license=('MIT')
+depends=('ruby' 'ruby-mustermann' 'ruby-rack' 'ruby-rack-protection' 'ruby-tilt')
+makedepends=('ruby-rake')
+checkdepends=('ruby-rspec' 'ruby-minitest' 'ruby-rack-test' 'ruby-activesupport' 'ruby-builder')
+options=('!emptydirs')
+source=("${url}/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz")
+sha512sums=('7127593bd44a5648407631f05d5db04100db30ae862c37e22dc264025fe271336c25df3c47839e41ba200da98be6c7b985852cd53d494a8bbda90fe701a89fe0')
+
+prepare() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  # allow latest dependencies
+  sed --in-place 's|~>|>=|g' "${_gemname}.gemspec"
+}
+
+build() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  # tests currently don't pass because a few tools are missing in our repo
+  # cannot load such file -- coffee-script: skipping coffee tests
+  # cannot load such file -- creole: skipping creole tests
+  # cannot load such file -- erubi: skipping erubi tests
+  # cannot load such file -- erubis: skipping erubis tests
+  # cannot load such file -- haml: skipping haml tests
+  #rake spec
+}
+
+package() {
+cd "${srcdir}/${_gemname}-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+  install -Dm 644 README.md RELEASING.md README.zh.md README.ru.md README.pt-pt.md README.pt-br.md README.malayalam.md README.ko.md README.ja.md README.hu.md README.fr.md README.es.md README.de.md MAINTENANCE.md CONTRIBUTING.md CHANGELOG.md AUTHORS.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+}



More information about the arch-commits mailing list