aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-rails-html-sanitizer/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ruby-rails-html-sanitizer/APKBUILD')
-rw-r--r--unmaintained/ruby-rails-html-sanitizer/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/unmaintained/ruby-rails-html-sanitizer/APKBUILD b/unmaintained/ruby-rails-html-sanitizer/APKBUILD
new file mode 100644
index 0000000000..42ea34c06f
--- /dev/null
+++ b/unmaintained/ruby-rails-html-sanitizer/APKBUILD
@@ -0,0 +1,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"