[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 19:03:27 UTC 2015
Date: Saturday, September 12, 2015 @ 21:03:27
Author: anthraxx
Revision: 139996
addpkg: ruby-rspec-support 3.3.0-2
Added:
ruby-rspec-support/
ruby-rspec-support/repos/
ruby-rspec-support/trunk/
ruby-rspec-support/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Added: ruby-rspec-support/trunk/PKGBUILD
===================================================================
--- ruby-rspec-support/trunk/PKGBUILD (rev 0)
+++ ruby-rspec-support/trunk/PKGBUILD 2015-09-12 19:03:27 UTC (rev 139996)
@@ -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