diff options
Diffstat (limited to 'testing/ruby-safe_yaml/APKBUILD')
-rw-r--r-- | testing/ruby-safe_yaml/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-safe_yaml/APKBUILD b/testing/ruby-safe_yaml/APKBUILD new file mode 100644 index 0000000000..280efd2e24 --- /dev/null +++ b/testing/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.3 +pkgrel=0 +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 ruby-gems" +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="e64bfe665a95a4fab59f2b7e6999aeaa safe_yaml-0.9.3.gem" +sha256sums="7cfb113133f21e5465d86d8690536925c046f039a09d2610c5b5f590ff7945ae safe_yaml-0.9.3.gem" +sha512sums="b8e05011a321d4e4ae329bf41aeb5916d5819f3b12166f0a076d8bc95038bcedb8c77b4c09da96e1646e127f0c70f7eacc98b8193cc32249e2ff41b9f3672251 safe_yaml-0.9.3.gem" |