[arch-commits] Commit in ruby-semantic_puppet/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 26 00:27:44 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:27:43
  Author: felixonmars
Revision: 541599

archrelease: copy trunk to community-staging-any

Added:
  ruby-semantic_puppet/repos/community-staging-any/
  ruby-semantic_puppet/repos/community-staging-any/PKGBUILD
    (from rev 541598, ruby-semantic_puppet/trunk/PKGBUILD)

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

Copied: ruby-semantic_puppet/repos/community-staging-any/PKGBUILD (from rev 541598, ruby-semantic_puppet/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 00:27:43 UTC (rev 541599)
@@ -0,0 +1,31 @@
+# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Contributor: Tim Meusel <tim at bastelfreak.de>
+_gemname=semantic_puppet
+pkgname="ruby-$_gemname"
+pkgver=1.0.2
+pkgrel=3
+pkgdesc='Tools used by Puppet to parse, validate, and compare Semantic Versions and Version Ranges and to query and resolve module dependencies.'
+arch=('any')
+url='https://github.com/puppetlabs/semantic_puppet#semanticpuppet'
+depends=('ruby')
+makedepends=('ruby-rdoc' 'rubygems')
+license=('Apache')
+options=('!emptydirs')
+source=("https://rubygems.org/gems/${_gemname}-${pkgver}.gem")
+noextract=("${_gemname}-${pkgver}.gem")
+sha512sums=('b059d8c7b13ae96dfe012318e7c6ee483cc09986d5d065c8422167a27a14d8e99433229c90388a7ff9ee425a0f5b6a6a6d5bc55f8b81901490afd8039ea86480')
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+  gem install \
+    --ignore-dependencies \
+    --no-user-install \
+    --install-dir "${pkgdir}${_gemdir}" \
+    --bindir "${pkgdir}/usr/bin" \
+    --verbose \
+    ${_gemname}-${pkgver}.gem
+
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+
+  install -D -m644 "${pkgdir}${_gemdir}/gems/semantic_puppet-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list