[arch-commits] Commit in ruby2.5-bundler/repos (2 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Jan 9 22:44:22 UTC 2019


    Date: Wednesday, January 9, 2019 @ 22:44:22
  Author: svenstaro
Revision: 421322

archrelease: copy trunk to community-staging-any

Added:
  ruby2.5-bundler/repos/community-staging-any/
  ruby2.5-bundler/repos/community-staging-any/PKGBUILD
    (from rev 421321, ruby2.5-bundler/trunk/PKGBUILD)

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

Copied: ruby2.5-bundler/repos/community-staging-any/PKGBUILD (from rev 421321, ruby2.5-bundler/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-01-09 22:44:22 UTC (rev 421322)
@@ -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.5
+_gemname=bundler
+pkgname=ruby${_rubyver}-${_gemname}
+pkgver=1.17.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.5')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("$_gemname-$pkgver.gem")
+sha512sums=('6adf044096b7716c8b0dae5f559506c65dcb8fd8a8a57428ac25331ca3a85b7cb399fb40b79aeccb0908d172686df9213b86f69286c3e383373ff5ee6f3b414d')
+
+package() {
+  cd "$srcdir"
+
+  local _gemdir="$(ruby-${_rubyver} -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}"
+}



More information about the arch-commits mailing list