blob: 280efd2e24f41f8b9313c6ed934e3f1f35e9e107 (
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.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"
|