diff options
Diffstat (limited to 'unmaintained/ruby-safe_yaml/APKBUILD')
-rw-r--r-- | unmaintained/ruby-safe_yaml/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-safe_yaml/APKBUILD b/unmaintained/ruby-safe_yaml/APKBUILD new file mode 100644 index 0000000000..ab6f70176b --- /dev/null +++ b/unmaintained/ruby-safe_yaml/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=safe_yaml +pkgname=ruby-$_gemname +pkgver=0.9.5 +pkgrel=1 +pkgdesc="Parse YAML safely, without that pesky arbitrary object deserialization vulnerability" +url="http://rubygems.org/gems/safe_yaml" +arch="noarch" +license="GPL" +depends="ruby" +depends_dev= +makedepends="$depends_dev" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_realname-$pkgver + +build() { + return 0 +} + +package() { + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + local _geminstdir=$_gemdir/gems/$_gemname-$pkgver + mkdir -p "$pkgdir" || return 1 + + gem install --local --install-dir "$pkgdir"/$_gemdir \ + --ignore-dependencies --verbose --no-rdoc --no-ri \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="bc039fdd750e4e8e8e8d87502734394e safe_yaml-0.9.5.gem" +sha256sums="f62a7f13eff175730fdca584af8e817491f4a6a6613dff27970577a7fcfd1277 safe_yaml-0.9.5.gem" +sha512sums="41f6ea9eeac760ab2bfaa7ae550a3ad39ddc9c0d7a17c02a48109c1217219340e14a8b1300b295e9b45dfa39538f3e9ec493a71800408f2dda6929bf1df5a498 safe_yaml-0.9.5.gem" |