[arch-commits] Commit in ruby-rspec-mocks/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 26 00:34:51 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:34:51
  Author: felixonmars
Revision: 541643

archrelease: copy trunk to community-staging-any

Added:
  ruby-rspec-mocks/repos/community-staging-any/
  ruby-rspec-mocks/repos/community-staging-any/PKGBUILD
    (from rev 541642, ruby-rspec-mocks/trunk/PKGBUILD)

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

Copied: ruby-rspec-mocks/repos/community-staging-any/PKGBUILD (from rev 541642, ruby-rspec-mocks/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 00:34:51 UTC (rev 541643)
@@ -0,0 +1,27 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec-mocks
+pkgname=ruby-${_gemname}
+pkgver=3.8.0
+pkgrel=3
+pkgdesc="RSpecs 'test double' framework, with support for stubbing and mocking"
+url='https://github.com/rspec/rspec-mocks'
+arch=('any')
+license=('MIT')
+depends=('ruby-rspec-support' 'ruby-diff-lcs')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('00b3b414cc47bc987db76c03f69a88ecb12960c74c3715fcd9a7be0562cf282cbd458709888d0f3718fb03997c7b74816677eae1310b0ac6f215467ede49e89e')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+  gem 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