ruby23-bundler.paketlendi

This commit is contained in:
milisarge 2017-07-20 02:23:20 +03:00
parent 03f2740cf4
commit 7a172e9f02
2 changed files with 25 additions and 19 deletions

View File

@ -1,19 +0,0 @@
# Description: Ruby uygulama-paket yöneticisi
# URL: http://www.ruby-lang.org
# Packager: yakar (aydin@komutan.org)
# Depends on: ruby23
name=ruby-bundler23
_name=ruby-bundler
version=1.15.1
release=1
source=(https://rubygems.org/downloads/${_name#ruby-}-$version.gem)
build () {
cd "$SRC"
local _gemdir="$(ruby -e'puts Gem.default_dir')"
HOME="/tmp" GEM_HOME="$_gemdir"
GEM_PATH="$_gemdir"
gem install --no-user-install --ignore-dependencies -i "$PKG/$_gemdir" -n "$PKG/usr/bin" "${_name#ruby-}-$version.gem"
rm "$PKG/$_gemdir/cache/${_name#ruby-}-$version.gem"
}

View File

@ -0,0 +1,25 @@
# Description: Ruby2.3 uygulama-paket yöneticisi
# URL: http://www.ruby-lang.org
# Packager: milisarge
# Depends on: ruby23
name=ruby23-bundler
_rubyver=2.3
_gemname=bundler
pkgname=ruby${_rubyver}-${_gemname}
version=1.15.1
release=1
source=(https://rubygems.org/downloads/$_gemname-$version.gem)
build () {
cd "$srcdir"
local _gemdir="$(ruby-${_rubyver} -rubygems -e'puts Gem.default_dir')"
HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem-${_rubyver} install --no-user-install --ignore-dependencies \
--no-ri --no-rdoc -i "$PKG/$_gemdir" "$_gemname-$version.gem"
rm "$PKG/$_gemdir/cache/$_gemname-$version.gem"
install -D -m644 "$PKG/$_gemdir/gems/$_gemname-$version/LICENSE.md" "$PKG/usr/share/licenses/$pkgname/LICENSE.md"
install -d "$PKG/usr/bin/"
ln -s "$_gemdir/bin/bundle" "$PKG/usr/bin/bundle-${_rubyver}"
}