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

Evangelos Foutras foutrelis at archlinux.org
Fri Mar 19 21:14:07 UTC 2021


    Date: Friday, March 19, 2021 @ 21:14:06
  Author: foutrelis
Revision: 895132

archrelease: copy trunk to community-staging-any

Added:
  ruby-puppet-resource_api/repos/community-staging-any/
  ruby-puppet-resource_api/repos/community-staging-any/PKGBUILD
    (from rev 895131, ruby-puppet-resource_api/trunk/PKGBUILD)

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

Copied: ruby-puppet-resource_api/repos/community-staging-any/PKGBUILD (from rev 895131, ruby-puppet-resource_api/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-03-19 21:14:06 UTC (rev 895132)
@@ -0,0 +1,42 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='puppet-resource_api'
+pkgname="ruby-${_gemname}"
+pkgver=1.8.13
+pkgrel=2
+pkgdesc='This library provides a simple way to write new native resources for puppet.'
+arch=('any')
+url='https://github.com/puppetlabs/puppet-resource_api'
+license=('Apache')
+depends=('ruby' 'ruby-hocon')
+makedepends=('ruby-rdoc')
+checkdepends=('ruby-rake' 'ruby-rspec' 'ruby-bundler')
+source=("${url}/archive/${pkgver}/${_gemname}-${pkgver}.tar.gz")
+noextract=("$_gemname-$pkgver.gem")
+options=("!emptydirs")
+sha512sums=('cc675e6142cf474fb0eea31259f9c738c5ed428a7546c0630411a4aa0fc45597424cb7056882460eb00103057ad286e60a5a774037b11c7a3f6d8a2f1e148ea1')
+
+build() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  # tests currently don't work because of outdated and partially dependencies
+  #rake test
+}
+
+package() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+  install -Dm 644 NOTICE LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -Dm 644 CHANGELOG.md CONTRIBUTING.md HISTORY.md README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  rm -r "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list