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

Levente Polyak anthraxx at archlinux.org
Sat Sep 12 19:03:47 UTC 2015


    Date: Saturday, September 12, 2015 @ 21:03:47
  Author: anthraxx
Revision: 139997

archrelease: copy trunk to community-any

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

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

Copied: ruby-rspec-support/repos/community-any/PKGBUILD (from rev 139996, ruby-rspec-support/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-09-12 19:03:47 UTC (rev 139997)
@@ -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.3.0
+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=('0fd860760d4eb8666e8dd9adbc32a6c43b6e9ab8b4574757e9a2cb7db9c9f07d3955df531f19582d6634cca914d70110af8f9c963913d4b4a5e61586aea20816')
+
+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