[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 19:36:11 UTC 2015
Date: Saturday, September 12, 2015 @ 21:36:10
Author: anthraxx
Revision: 139998
addpkg: ruby-rspec-mocks 3.3.0-2
Added:
ruby-rspec-mocks/
ruby-rspec-mocks/repos/
ruby-rspec-mocks/trunk/
ruby-rspec-mocks/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Added: ruby-rspec-mocks/trunk/PKGBUILD
===================================================================
--- ruby-rspec-mocks/trunk/PKGBUILD (rev 0)
+++ ruby-rspec-mocks/trunk/PKGBUILD 2015-09-12 19:36:10 UTC (rev 139998)
@@ -0,0 +1,27 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec-mocks
+pkgname=ruby-${_gemname}
+pkgver=3.3.0
+pkgrel=2
+pkgdesc="RSpecs 'test double' framework, with support for stubbing and mocking"
+url='http://github.com/rspec/rspec-mocks'
+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=('84fb495a1f9afa2a9071f70e5a83df0847e6ba37c983848493fbd8f61a5fb9570a275960b9c9259113a825dd7f592ae3105f3b0102636fead6499cd577931336')
+
+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
+ find ${pkgdir}
+ 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