Date: Wednesday, September 23, 2020 @ 19:27:15 Author: anatolik Revision: 711588
archrelease: copy trunk to community-testing-any Added: ruby-irb/repos/community-testing-any/ ruby-irb/repos/community-testing-any/PKGBUILD (from rev 711587, ruby-irb/trunk/PKGBUILD) ----------+ PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Copied: ruby-irb/repos/community-testing-any/PKGBUILD (from rev 711587, ruby-irb/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2020-09-23 19:27:15 UTC (rev 711588) @@ -0,0 +1,26 @@ +# Maintainer: Anatol Pomozov + +_gemname=irb +pkgname=ruby-$_gemname +pkgver=1.2.7 +pkgrel=1 +pkgdesc="Interactive Ruby command-line tool for REPL (Read Eval Print Loop)." +arch=('any') +url='https://github.com/ruby/irb' +license=('BSD-2') +depends=('ruby' 'ruby-reline') +makedepends=('ruby-rdoc') +options=('!emptydirs') +source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") +noextract=("$_gemname-$pkgver.gem") +sha512sums=('2226412b65fa7c76ec19202f5458f67cb0a0ff5a2f6a8c98484728c2fa9fbc2cb61b33b5c42640aa0f0215254def5636b729112764825df9a6b568796d9978b3') + +package() { + cd "$srcdir" + + local _gemdir="$(ruby -e'puts Gem.default_dir')" + HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem install -N --no-user-install --ignore-dependencies \ + -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" + install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" +}