Package Details: r10k 3.3.3-1

Git Clone URL: (read-only, click to copy)
Package Base: r10k
Description: R10K provides a general purpose toolset for deploying Puppet environments and modules.
Upstream URL:
Licenses: Apache
Submitter: arakmar
Maintainer: arakmar
Last Packager: arakmar
Votes: 0
Popularity: 0.000000
First Submitted: 2017-03-02 08:48
Last Updated: 2019-12-24 11:29

Latest Comments

bastelfreak commented on 2020-01-05 13:52

Hi, I updated the PKGBUILD to properly build from source:

# Maintainer: Tim Meusel <>

pkgdesc='Provides a general purpose toolset for deploying Puppet environments and modules. It implements the Puppetfile format and provides a native implementation of Puppet dynamic environments.'
makedepends=('ruby-rdoc' 'ruby-rspec' 'ruby-minitar')
depends=('ruby' 'ruby-puppet_forge' 'ruby-gettext-setup' 'ruby-cri' 'git' 'ruby-rugged' 'ruby-multi_json' 'ruby-log4r' 'ruby-colored')
source=("${pkgver}/${pkgname}-${pkgver}.tar.gz" 'disable-sha256-test.patch' 'disable-insync-module-test.patch')

# update the gemspec to allow newer versions of rake
# remove deprecated options from the gemspec
prepare() {
  cd "${pkgname}-${pkgver}"
  sed --in-place 's|~>|>=|g' "${pkgname}.gemspec"
  sed --in-place 's|.*git ls-files.*|  s.files        = `find`.split("\\n")|' "${pkgname}.gemspec"

  # disable broken tests
  patch -p1 -N -i "${srcdir}/disable-sha256-test.patch"
  patch -p1 -N -i "${srcdir}/disable-insync-module-test.patch"

  # allow latest ruby-cri version
  sed --in-place "s/s.add_dependency 'cri',       '2.15.6'/s.add_dependency 'cri', '>= 2.15.6'/" "${pkgname}.gemspec"

build() {
  cd "${pkgname}-${pkgver}"
  gem build "${pkgname}.gemspec"

check() {
  cd "${pkgname}-${pkgver}"
  # The spec tests show a few warnings because upstream currently doesn't test on Ruby 2.6
  # First PR to fix this:
  rspec --color --format documentation spec/unit

package() {
  cd "${pkgname}-${pkgver}"
  local _gemdir="$(gem env gemdir)"
  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${pkgname}-${pkgver}.gem"

  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"

  rm -rf "${pkgdir}/${_gemdir}/cache"

# vim: ts=2 sw=2 et: