[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Sat Sep 12 20:32:18 UTC 2015


    Date: Saturday, September 12, 2015 @ 22:32:18
  Author: anthraxx
Revision: 140005

addpkg: ruby-rspec 3.3.0-2

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

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

Added: ruby-rspec/trunk/PKGBUILD
===================================================================
--- ruby-rspec/trunk/PKGBUILD	                        (rev 0)
+++ ruby-rspec/trunk/PKGBUILD	2015-09-12 20:32:18 UTC (rev 140005)
@@ -0,0 +1,26 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec
+pkgname=ruby-${_gemname}
+pkgver=3.3.0
+pkgrel=2
+pkgdesc='RSpec meta-gem that depends on the other components'
+url='https://github.com/rspec/rspec'
+arch=('any')
+license=('MIT')
+depends=('ruby-rspec-core' 'ruby-rspec-expectations' 'ruby-rspec-mocks')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('cafc2bcfae261da8f990a8c6327db88f800d73c9fed2dbf4ca360930376906ae6621349ac9cc92b900e069647eb9d1dde1e41feb6ba25b84d30228ae038efbd4')
+
+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