[arch-commits] Commit in (4 files)

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


    Date: Sunday, May 16, 2021 @ 00:26:16
  Author: bastelfreak
Revision: 934858

add ruby27-rspec-mocks

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

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

Added: ruby27-rspec-mocks/trunk/PKGBUILD
===================================================================
--- ruby27-rspec-mocks/trunk/PKGBUILD	                        (rev 0)
+++ ruby27-rspec-mocks/trunk/PKGBUILD	2021-05-16 00:26:16 UTC (rev 934858)
@@ -0,0 +1,28 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec-mocks
+pkgname=ruby27-${_gemname}
+pkgver=3.10.2
+pkgrel=1
+pkgdesc="RSpecs 'test double' framework, with support for stubbing and mocking"
+url='https://github.com/rspec/rspec-mocks'
+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=('a40a14842bc98d1da767e899a5ffb6aca649202549ab53fe59d83e83d35f0ff902dd8631a0a557806e68b573c6b425f650142faad2b60ced6f6863b8adbff1fd')
+
+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
+  find "${pkgdir}"
+  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