-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull in ruby-bundler from AUR, 1.10.6-1 updated 2015-07-22 @ b815fbfc…
…4b2fda746a2d56099829836cb0a1ae01
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Maintainer: Jonne Haß <me@jhass.eu> | ||
# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr> | ||
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com> | ||
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru> | ||
|
||
pkgname=ruby-bundler | ||
_gemname=${pkgname#ruby-} | ||
pkgver=1.10.6 | ||
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') | ||
options=('!emptydirs') | ||
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") | ||
noextract=("$_gemname-$pkgver.gem") | ||
sha256sums=('fb2933d12304cec75dac75b93a1cb045da026b291e6c65b09744ceb900769fee') | ||
|
||
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" | ||
} |