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

Felix Yan felixonmars at archlinux.org
Thu Dec 26 00:35:58 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:35:57
  Author: felixonmars
Revision: 541645

archrelease: copy trunk to community-staging-any

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

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

Copied: ruby-rspec-expectations/repos/community-staging-any/PKGBUILD (from rev 541644, ruby-rspec-expectations/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 00:35:57 UTC (rev 541645)
@@ -0,0 +1,26 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec-expectations
+pkgname=ruby-${_gemname}
+pkgver=3.8.1
+pkgrel=3
+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=('ruby-rspec-support' 'ruby-diff-lcs')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('38964a6e98eb6be70ef097747956a441c5792fec7792c52a3a4801b7a567d4a4a70fc9de4c5f9c4254d9cfd9b5d8d21db7515e1ce0bc5018dfc565b380df6777')
+
+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
+  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