[arch-commits] Commit in ruby-rspec/repos (community-any community-any/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 20:32:42 UTC 2015
Date: Saturday, September 12, 2015 @ 22:32:42
Author: anthraxx
Revision: 140006
archrelease: copy trunk to community-any
Added:
ruby-rspec/repos/community-any/
ruby-rspec/repos/community-any/PKGBUILD
(from rev 140005, ruby-rspec/trunk/PKGBUILD)
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Copied: ruby-rspec/repos/community-any/PKGBUILD (from rev 140005, ruby-rspec/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-09-12 20:32:42 UTC (rev 140006)
@@ -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