blob: 943ca4a653523fa463d22bbcf3bd65d49e8d5e8e (
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.1
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="6c56594b2ac8bfb75da4e6dc97983b48 rails-html-sanitizer-1.0.1.gem"
sha256sums="f8c08716c30a087d655ff99249a8cafd426344dc96d6647ee9015e4d06a08dee rails-html-sanitizer-1.0.1.gem"
sha512sums="05c4cbf5d49c6ed0c90bfe37bb10d1c12c69eb50170cb1bf8affddf3a02a12a2e043687fc541c4dd178c92040b3d3967bc643df759c699e325cead1a047b9f30 rails-html-sanitizer-1.0.1.gem"
|