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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Dec 28 22:01:39 UTC 2015


    Date: Monday, December 28, 2015 @ 23:01:38
  Author: bpiotrowski
Revision: 154730

archrelease: copy trunk to community-staging-any

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

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

Copied: ruby-rspec-support/repos/community-staging-any/PKGBUILD (from rev 154728, ruby-rspec-support/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-12-28 22:01:38 UTC (rev 154730)
@@ -0,0 +1,26 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec-support
+pkgname=ruby-${_gemname}
+pkgver=3.4.1
+pkgrel=2
+pkgdesc='Common code needed by the other RSpec gems. Not intended for direct use'
+url='https://github.com/rspec/rspec-support'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('2252a8b51f742e1a8b6dacdc9a053c1e033bd9425b65520384b205314db6ffad567ac317ff4ccd64f1d518c73c9137e38a1bbd160724dd77841dfd7064e7380c')
+
+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