summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD27
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2b61c512ef3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ruby1.9-bundler
+ pkgdesc = Manages an application's dependencies through its entire life, across many machines, systematically and repeatably.
+ pkgver = 1.10.3
+ pkgrel = 1
+ url = http://bundler.io
+ arch = any
+ license = MIT
+ depends = ruby1.9
+ noextract = bundler-1.10.3.gem
+ source = http://rubygems.org/downloads/bundler-1.10.3.gem
+ sha256sums = 9c2c7093468c763eeadad47dae9de4d7ed2e6f08e80a130d1b0d6db6a46608cc
+
+pkgname = ruby1.9-bundler
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c4fbc77c501
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Jonne Haß <me@jhass.eu>
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+
+pkgname=ruby1.9-bundler
+_gemname=${pkgname#ruby1.9-}
+pkgver=1.10.3
+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=('ruby1.9')
+source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+
+package() {
+ cd "${srcdir}"
+
+ local _gemdir="$(ruby-1.9 -rubygems -e'puts Gem.default_dir')"
+ HOME=/tmp GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem-1.9 install --no-ri --no-rdoc \
+ --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" ${_gemname}-${pkgver}.gem
+
+ install -d $pkgdir/usr/bin/
+ ln -s $_gemdir/bin/bundle $pkgdir/usr/bin/bundle-1.9
+}
+
+sha256sums=('9c2c7093468c763eeadad47dae9de4d7ed2e6f08e80a130d1b0d6db6a46608cc')