[arch-commits] Commit in (4 files)

Tim Meusel bastelfreak at archlinux.org
Sun May 16 00:25:39 UTC 2021


    Date: Sunday, May 16, 2021 @ 00:25:39
  Author: bastelfreak
Revision: 934856

add ruby27-rspec-expectations

Added:
  ruby27-rspec-expectations/
  ruby27-rspec-expectations/repos/
  ruby27-rspec-expectations/trunk/
  ruby27-rspec-expectations/trunk/PKGBUILD

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

Added: ruby27-rspec-expectations/trunk/PKGBUILD
===================================================================
--- ruby27-rspec-expectations/trunk/PKGBUILD	                        (rev 0)
+++ ruby27-rspec-expectations/trunk/PKGBUILD	2021-05-16 00:25:39 UTC (rev 934856)
@@ -0,0 +1,27 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec-expectations
+pkgname=ruby27-${_gemname}
+pkgver=3.10.1
+pkgrel=1
+pkgdesc='Provides a readable API to express expected outcomes of a code example'
+url='https://github.com/rspec/rspec-expectations'
+arch=('any')
+license=('MIT')
+depends=('ruby27-rspec-support' 'ruby27-diff-lcs')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('c2e6fa12f5531ba91f03e22de3af4eed5cea74434634503302e38732b042423c669d2ddae3750d94f5f36c85433ae5743fcc0d0c4a0c50326050efde087b8a0a')
+
+package() {
+  local _gemdir="$(ruby-2.7 -e'puts Gem.default_dir')"
+  gem-2.7 install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+  install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README"
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list