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

Anatol Pomozov anatolik at gemini.archlinux.org
Tue Jan 18 17:59:18 UTC 2022


    Date: Tuesday, January 18, 2022 @ 17:59:18
  Author: anatolik
Revision: 1109304

archrelease: copy trunk to community-testing-any

Added:
  ruby-irb/repos/community-testing-any/
  ruby-irb/repos/community-testing-any/PKGBUILD
    (from rev 1109303, ruby-irb/trunk/PKGBUILD)

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

Copied: ruby-irb/repos/community-testing-any/PKGBUILD (from rev 1109303, ruby-irb/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-01-18 17:59:18 UTC (rev 1109304)
@@ -0,0 +1,28 @@
+# Maintainer: Anatol Pomozov
+
+_gemname=irb
+pkgname=ruby-$_gemname
+pkgver=1.4.1
+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=('601c834f66346a432638e9205f62c809a6d4987aed1657ab8398cc2593d2b20465412b94d78a2a0e472e07baf4d46b69cb727a1e45b6992c88174c02fa17dcf5')
+
+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"
+
+  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/man/irb.1" "$pkgdir/usr/share/man/man1/irb.1"
+}



More information about the arch-commits mailing list