summaryrefslogtreecommitdiff
path: root/pkgs/ruby-bundler/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/ruby-bundler/PKGBUILD')
-rw-r--r--pkgs/ruby-bundler/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/ruby-bundler/PKGBUILD b/pkgs/ruby-bundler/PKGBUILD
new file mode 100644
index 0000000..840777a
--- /dev/null
+++ b/pkgs/ruby-bundler/PKGBUILD
@@ -0,0 +1,24 @@
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+pkgname=ruby-bundler
+pkgver=1.0.7
+pkgrel=1
+pkgdesc="Is manages an application's dependencies through its entire life, across many machines, systematically and repeatably."
+arch=(any)
+url="http://gembundler.com/"
+license=('MIT')
+depends=('ruby')
+makedepends=(rubygems)
+source=(http://gems.rubyforge.org/gems/bundler-$pkgver.gem)
+noextract=(bundler-$pkgver.gem)
+md5sums=('6ca4f832d5c5271a1ee41b788c6868c4')
+
+build() {
+ cd $srcdir
+ # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
+ # makepkg will exit with an error when sourcing the PKGBUILD
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+
+ gem install --ignore-dependencies -i "$pkgdir$_gemdir" bundler-$pkgver.gem
+
+ mv -t $pkgdir/usr/ $pkgdir$_gemdir/bin
+}