[arch-commits] Commit in ruby-rspec-core/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sat Sep 12 20:15:41 UTC 2015


    Date: Saturday, September 12, 2015 @ 22:15:41
  Author: anthraxx
Revision: 140004

archrelease: copy trunk to community-any

Added:
  ruby-rspec-core/repos/community-any/
  ruby-rspec-core/repos/community-any/PKGBUILD
    (from rev 140003, ruby-rspec-core/trunk/PKGBUILD)

----------+
 PKGBUILD |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Copied: ruby-rspec-core/repos/community-any/PKGBUILD (from rev 140003, ruby-rspec-core/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-09-12 20:15:41 UTC (rev 140004)
@@ -0,0 +1,26 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Artem Vorotnikov <artem at vorotnikov.me>
+
+_gemname=rspec-core
+pkgname=ruby-${_gemname}
+pkgver=3.3.0
+pkgrel=2
+pkgdesc='RSpec runner and formatters'
+url='https://github.com/rspec/rspec-core'
+arch=('any')
+license=('MIT')
+depends=('ruby-rspec-support')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('c05beb67da484cf7906f12c784e6f3243fcc4855072b1d4bcb130bf76e9ad087fe39a9cdd98709c504368976fd39c4690bb9496cd1dcff06ef086f1f91154f9c')
+
+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