[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Sat Sep 12 19:56:27 UTC 2015


    Date: Saturday, September 12, 2015 @ 21:56:27
  Author: anthraxx
Revision: 140000

addpkg: ruby-rspec-support 3.3.0-2

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

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

Added: ruby-rspec-expectations/trunk/PKGBUILD
===================================================================
--- ruby-rspec-expectations/trunk/PKGBUILD	                        (rev 0)
+++ ruby-rspec-expectations/trunk/PKGBUILD	2015-09-12 19:56:27 UTC (rev 140000)
@@ -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.3.0
+pkgrel=2
+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=('0a121c052065539f877e3f1f7c58196f44484f26dfbb4b0d102d1a1496f6a1026c5c202dab844b7b024ca155d9a5d2bc209e4599bb11069bc523c99dcf6fd5c4')
+
+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.txt" "${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