[arch-commits] Commit in (4 files)
Tim Meusel
bastelfreak at archlinux.org
Sun May 16 00:24:32 UTC 2021
Date: Sunday, May 16, 2021 @ 00:24:32
Author: bastelfreak
Revision: 934854
add ruby27-rspec
Added:
ruby27-rspec/
ruby27-rspec/repos/
ruby27-rspec/trunk/
ruby27-rspec/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Added: ruby27-rspec/trunk/PKGBUILD
===================================================================
--- ruby27-rspec/trunk/PKGBUILD (rev 0)
+++ ruby27-rspec/trunk/PKGBUILD 2021-05-16 00:24:32 UTC (rev 934854)
@@ -0,0 +1,27 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec
+pkgname=ruby27-${_gemname}
+pkgver=3.10.0
+pkgrel=1
+pkgdesc='RSpec meta-gem that depends on the other components'
+url='https://github.com/rspec/rspec'
+arch=('any')
+license=('MIT')
+depends=('ruby27-rspec-core' 'ruby27-rspec-expectations' 'ruby27-rspec-mocks')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('dd1a3a1c7c73ae9c053e071d7851780d8cf61e92ddba24072b9f2c00a342ed08c81090332ba2eaf7ab96adac3fc723685996195e5cc584e15de57ff02a4455ec')
+
+package() {
+ local _gemdir="$(ruby-2.7 -e'puts Gem.default_dir')"
+ gem-2.7 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