diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-29 08:11:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-29 12:36:41 +0000 |
commit | 80acbaee801184140fac0c967cbb8aa051db2b06 (patch) | |
tree | 77c8128eadea951dd93cce5ba6632c5ddc120426 /unmaintained/ruby-sanitize | |
parent | 5db5ee5c13e577e862e822501b2e4863fbd63195 (diff) | |
download | aports-80acbaee801184140fac0c967cbb8aa051db2b06.tar.bz2 aports-80acbaee801184140fac0c967cbb8aa051db2b06.tar.xz |
move testing/ruby-* to unmaintained
ruby-mime-types and ruby-nokogiri was there already so remove those
Diffstat (limited to 'unmaintained/ruby-sanitize')
-rw-r--r-- | unmaintained/ruby-sanitize/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-sanitize/APKBUILD b/unmaintained/ruby-sanitize/APKBUILD new file mode 100644 index 0000000000..b532c9bb9b --- /dev/null +++ b/unmaintained/ruby-sanitize/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Seung Soo Mun <hamletmun@gmail.com> +# Maintainer: +_gemname=sanitize +pkgname=ruby-$_gemname +pkgver=2.1.0 +pkgrel=0 +pkgdesc="Whitelist-based HTML sanitizer" +url="http://rubygems.org/gems/$_gemname" +arch="noarch" +license="MIT" +depends="ruby ruby-nokogiri" +depends_dev="" +makedepends="$depends_dev" +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="de4969351643836ca2a48d010167ba03 sanitize-2.1.0.gem" +sha256sums="c3be075f5b38a1b02404be5778b181e50fba9ab253bac851cb217d9a71375b77 sanitize-2.1.0.gem" +sha512sums="29a26e37342a75af2bc7795578edf2c5064263c58d38dfc36e18f1e111271616c026f7d808a05d63185c12f0e52384db84d62bdb796bf1b21d7e902ef0c1d096 sanitize-2.1.0.gem" |