[arch-commits] Commit in ruby-rspec-mocks/repos (community-any community-any/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 19:36:33 UTC 2015
Date: Saturday, September 12, 2015 @ 21:36:33
Author: anthraxx
Revision: 139999
archrelease: copy trunk to community-any
Added:
ruby-rspec-mocks/repos/community-any/
ruby-rspec-mocks/repos/community-any/PKGBUILD
(from rev 139998, ruby-rspec-mocks/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: ruby-rspec-mocks/repos/community-any/PKGBUILD (from rev 139998, ruby-rspec-mocks/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-09-12 19:36:33 UTC (rev 139999)
@@ -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