[arch-commits] Commit in (4 files)

Anatol Pomozov anatolik at archlinux.org
Thu Jan 4 01:11:21 UTC 2018


    Date: Thursday, January 4, 2018 @ 01:11:20
  Author: anatolik
Revision: 278373

Add ruby2.4-bundler used by metasploit

Added:
  ruby2.4-bundler/
  ruby2.4-bundler/repos/
  ruby2.4-bundler/trunk/
  ruby2.4-bundler/trunk/PKGBUILD

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

Added: ruby2.4-bundler/trunk/PKGBUILD
===================================================================
--- ruby2.4-bundler/trunk/PKGBUILD	                        (rev 0)
+++ ruby2.4-bundler/trunk/PKGBUILD	2018-01-04 01:11:20 UTC (rev 278373)
@@ -0,0 +1,31 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Sergey Shatunov <me at prok.pw>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+_rubyver=2.4
+_gemname=bundler
+pkgname=ruby${_rubyver}-${_gemname}
+pkgver=1.16.1
+pkgrel=1
+pkgdesc="Manages an application's dependencies through its entire life, across many machines, systematically and repeatably."
+arch=('any')
+url="http://bundler.io"
+license=('MIT')
+depends=('ruby2.4')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("$_gemname-$pkgver.gem")
+sha512sums=('2cca87aa17b61df98ef98a648a7d7cfe0529015f1278e8cb2298bb12544157933d723bd666d945bcdbaceacbf97a092a3848e2a587bd01cffa73c662d37d4834')
+
+package() {
+  cd "$srcdir"
+
+  local _gemdir="$(ruby-${_rubyver} -rubygems -e'puts Gem.default_dir')"
+  HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem-${_rubyver} install --no-user-install --ignore-dependencies \
+    --no-ri --no-rdoc -i "$pkgdir/$_gemdir" "$_gemname-$pkgver.gem"
+  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+
+  install -d "$pkgdir/usr/bin/"
+  ln -s "$_gemdir/bin/bundle" "$pkgdir/usr/bin/bundle-${_rubyver}"
+}


Property changes on: ruby2.4-bundler/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list