summaryrefslogtreecommitdiff
path: root/user/ruby-bundler/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/ruby-bundler/APKBUILD')
-rw-r--r--user/ruby-bundler/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/ruby-bundler/APKBUILD b/user/ruby-bundler/APKBUILD
new file mode 100644
index 000000000..d3c470b51
--- /dev/null
+++ b/user/ruby-bundler/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Alyx Wolcott <alyx@leuhta.com>
+_gemname=bundler
+pkgname=ruby-$_gemname
+pkgver=2.0.2
+pkgrel=0
+pkgdesc="Manage an application's gem dependencies"
+url="https://bundler.io/"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-dev"
+subpackages="$pkgname-doc"
+options="!check"
+source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
+builddir="$srcdir/$_gemname-$pkgver"
+
+package() {
+ local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
+
+ gem install --local \
+ --install-dir "$gemdir" \
+ --bindir "$pkgdir/usr/bin" \
+ --ignore-dependencies \
+ --no-document \
+ --verbose \
+ "$srcdir"/$_gemname-$pkgver.gem
+
+ local n; for n in 1 5; do
+ mkdir -p "$pkgdir"/usr/share/man/man$n
+ mv "$gemdir"/gems/$_gemname-$pkgver/man/*.$n "$pkgdir"/usr/share/man/man$n/
+ done
+
+ rm -rf "$gemdir"/cache \
+ "$gemdir"/build_info \
+ "$gemdir"/doc \
+ "$gemdir"/gems/$_gemname-$pkgver/man \
+ "$gemdir"/gems/$_gemname-$pkgver/*.md
+}
+
+
+sha512sums="f41fe9e385fbf42859f3514b71abdaa1fd787f4ff4b1169b8ee40ea7778c114657c60ca3d6d6d72fbe972af0558f0cccd9c9f28cad7fc712ada27f037dce8a6a bundler-2.0.2.gem"