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

Anatol Pomozov anatolik at archlinux.org
Tue Jan 8 18:00:24 UTC 2019


    Date: Tuesday, January 8, 2019 @ 18:00:23
  Author: anatolik
Revision: 421048

archrelease: copy trunk to community-staging-any

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

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

Copied: ruby-irb/repos/community-staging-any/PKGBUILD (from rev 421047, ruby-irb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-01-08 18:00:23 UTC (rev 421048)
@@ -0,0 +1,26 @@
+# Maintainer: Anatol Pomozov
+
+_gemname=irb
+pkgname=ruby-$_gemname
+pkgver=1.0.0
+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')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("$_gemname-$pkgver.gem")
+sha512sums=('5699c8e0cd479445aa78e4d3aade1a61669bc863dba063e2b7e4e6418895fb06c46b50683d63ea7c1ded19acd3a133ff4e023a105cbd2a36d0801daef11bb60d')
+
+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