diff options
author | Alyx Wolcott <alyx@malkier.net> | 2019-07-04 19:16:58 -0500 |
---|---|---|
committer | Alyx Wolcott <alyx@malkier.net> | 2019-07-04 19:16:58 -0500 |
commit | 842362c246553f121cc1e18c7e0bc398551850ca (patch) | |
tree | 2289215478f9a09af6644d1e714e7a6f90f18a18 /user | |
parent | c0ccd6a4ae6f2f5722da4e97c326abd163a1a56f (diff) | |
download | packages-842362c246553f121cc1e18c7e0bc398551850ca.tar.gz packages-842362c246553f121cc1e18c7e0bc398551850ca.tar.bz2 packages-842362c246553f121cc1e18c7e0bc398551850ca.tar.xz packages-842362c246553f121cc1e18c7e0bc398551850ca.zip |
user/ruby-bundler: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/ruby-bundler/APKBUILD | 41 |
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" |