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

Felix Yan felixonmars at archlinux.org
Fri Jan 4 12:44:51 UTC 2019


    Date: Friday, January 4, 2019 @ 12:44:47
  Author: felixonmars
Revision: 420527

archrelease: copy trunk to community-testing-any

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

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

Copied: ruby-bundler/repos/community-testing-any/PKGBUILD (from rev 420526, ruby-bundler/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-01-04 12:44:47 UTC (rev 420527)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jonne Haß <me at jhass.eu>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+
+pkgname=ruby-bundler
+_gemname=${pkgname#ruby-}
+pkgver=2.0.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=('ruby')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("$_gemname-$pkgver.gem")
+sha512sums=('9f4c15f5ed8e5c500346a33d300f6d21c164bb2c9d518dd719132ce5c4f6d27b655c5f09e3cecc589922e2c45d6fe6daa3ee0b79d1c84fc15bf15879a3e9428a')
+
+package() {
+  cd "$srcdir"
+
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+  HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem install --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.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}


More information about the arch-commits mailing list