Date: Sunday, February 2, 2020 @ 15:36:21 Author: shibumi Revision: 561644
add as dep for puppet Added: ruby-puppet-resource_api/ ruby-puppet-resource_api/repos/ ruby-puppet-resource_api/trunk/ ruby-puppet-resource_api/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Added: ruby-puppet-resource_api/trunk/PKGBUILD =================================================================== --- ruby-puppet-resource_api/trunk/PKGBUILD (rev 0) +++ ruby-puppet-resource_api/trunk/PKGBUILD 2020-02-02 15:36:21 UTC (rev 561644) @@ -0,0 +1,42 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> +# Contributor: Tim Meusel <t...@bastelfreak.de> + +_gemname='puppet-resource_api' +pkgname="ruby-${_gemname}" +pkgver=1.8.11 +pkgrel=3 +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=('5294384355d8a21fed597dbd97ea3c9a3d333cb0e57c23a1cbdbd56dbd42241abf7070d588d80162911bb4863aa5e0890f66bde7e68c1d126889b5142aba9a88') + +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: