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-http-cookie/APKBUILD | |
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-http-cookie/APKBUILD')
-rw-r--r-- | unmaintained/ruby-http-cookie/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-http-cookie/APKBUILD b/unmaintained/ruby-http-cookie/APKBUILD new file mode 100644 index 0000000000..8745496762 --- /dev/null +++ b/unmaintained/ruby-http-cookie/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> + +_gemname=http-cookie +pkgname=ruby-$_gemname +pkgver=1.0.2 +pkgrel=0 +pkgdesc="A Ruby library to handle HTTP Cookies based on RFC 6265" +arch="noarch" +url="https://github.com/sparklemotion/http-cookie" +license="MIT" +depends="ruby ruby-domain_name" +depends_dev= +makedepends="$depends_dev" +source="https://rubygems.org/downloads/$_gemname-$pkgver.gem" +_builddir="$srcdir"/$_gemname-$pkgver +build() { + mkdir -p "$_builddir" || return 1 + export _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \ + --ignore-dependencies \ + --verbose \ + --no-rdoc \ + --no-ri \ + || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 + install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" +} + +md5sums="70529d56540a162f52ce361a389a0307 http-cookie-1.0.2.gem" +sha256sums="bcc1b18b5bc3e9302542c9c7f68f1ac0c3100a65dd2831786172e8676773e233 http-cookie-1.0.2.gem" +sha512sums="447b7fcfd67f64edbd8420672add7ff04f28358ecd8ef59c3bf861b48378729d02bc1e4396259104651794e011ef0de72c892f28fd658474a1fc315b9b750178 http-cookie-1.0.2.gem" |