aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-rails-html-sanitizer/APKBUILD
blob: 42ea34c06fc789df69a19750848bfea9a10d366a (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
_gemname=rails-html-sanitizer
pkgname=ruby-$_gemname
pkgver=1.0.3
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"

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="d13c644238baf23fb79d39c820c51a11  rails-html-sanitizer-1.0.3.gem"
sha256sums="a7da8eb4ce2e673ba909d36a94a9e06f196e88a92e76d01dfee3803d0d6a0e8d  rails-html-sanitizer-1.0.3.gem"
sha512sums="84d91014384773389492d7cde0afcdc7e3324320970788d88861f89395d847d2599d1e645177f5301109194805ffb684f591e287f3e4280117738416655d934a  rails-html-sanitizer-1.0.3.gem"