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

Felix Yan felixonmars at archlinux.org
Thu Dec 26 01:06:36 UTC 2019


    Date: Thursday, December 26, 2019 @ 01:06:35
  Author: felixonmars
Revision: 541736

archrelease: copy trunk to community-staging-any

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

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

Copied: ruby-irb/repos/community-staging-any/PKGBUILD (from rev 541734, ruby-irb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 01:06:35 UTC (rev 541736)
@@ -0,0 +1,26 @@
+# Maintainer: Anatol Pomozov
+
+_gemname=irb
+pkgname=ruby-$_gemname
+pkgver=1.1.0
+pkgrel=3
+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=('84c39f34e6b364476e7b43b66fa463c184eca93082060bd3f940ed4e97a82cd7b7d1972e60cc34f83dd021a817a233ec7faa6fc08651aabe84c6415bd7f724a7')
+
+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"
+}


More information about the arch-commits mailing list