blob: a53bf54fff29b56ffa8852c41c7d58ef5a642a2b (
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
|
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
_gemname=rails-html-sanitizer
pkgname=ruby-$_gemname
pkgver=1.0.2
pkgrel=0
pkgdesc="HTML sanitization for Rails applications"
url=http://rubyonrails.org/
arch=noarch
license=MIT
depends="ruby ruby-loofah"
depends_dev=
makedepends="$depends_dev ruby"
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="46652be17f5a7004878068273b00888b rails-html-sanitizer-1.0.2.gem"
sha256sums="2481cfb60c4a03941489af5c92165c6dd169966f0b849d26d857cab5444b467a rails-html-sanitizer-1.0.2.gem"
sha512sums="c86b295ae42f9c78a32173fd80d659dd49b4938e6a8d8e170a709d692363aaa6159c7b77ca9a04ffff30a365934dc6e12437b58b2dc5ccbf44d30dbab4caecba rails-html-sanitizer-1.0.2.gem"
|