aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-safe_yaml/APKBUILD
blob: ab6f70176b3e559ba3d24e66c797e4ba3c097005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"