Date: Saturday, October 15, 2022 @ 08:54:32 Author: grawlinson Revision: 1329142
addpkg: ruby-mixlib-shellout 3.2.7-2 Added: ruby-mixlib-shellout/ ruby-mixlib-shellout/repos/ ruby-mixlib-shellout/trunk/ ruby-mixlib-shellout/trunk/PKGBUILD ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Added: ruby-mixlib-shellout/trunk/PKGBUILD =================================================================== --- ruby-mixlib-shellout/trunk/PKGBUILD (rev 0) +++ ruby-mixlib-shellout/trunk/PKGBUILD 2022-10-15 08:54:32 UTC (rev 1329142) @@ -0,0 +1,50 @@ +# Maintainer: George Rawlinson <[email protected]> +# Contributor: Joel Goguen <[email protected]> +# Contributor: Christopher Loen <christopherloen at gmail dot com> +# Contributor: Artem Vorotnikov <[email protected]> + +pkgname=ruby-mixlib-shellout +_pkgname="${pkgname#ruby-}" +pkgver=3.2.7 +pkgrel=2 +pkgdesc='Run external commands on Unix' +arch=('any') +url='https://github.com/chef/mixlib-shellout' +license=('Apache') +depends=('ruby' 'ruby-chef-utils') +makedepends=('git' 'ruby-rake' 'ruby-rdoc') +options=('!emptydirs') +_commit='ca1f88cf1d6a1d56a1b89c79c3fca507db7b4b0f' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + gem build "$_pkgname.gemspec" +} + +package() { + cd "$pkgname" + + local _gemdir="$(gem env gemdir)" + + #--no-document \ + gem install \ + --local \ + --verbose \ + --ignore-dependencies \ + --no-user-install \ + --install-dir "$pkgdir/$_gemdir" \ + --bindir "$pkgdir/usr/bin" \ + "$_pkgname-$pkgver.gem" + + # delete cache + rm -vrf "$pkgdir/$_gemdir/cache" +}
