diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-29 08:59:35 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-05-29 09:01:18 +0000 |
commit | 780b708be72915b19b201b4fba9838f4112c88d8 (patch) | |
tree | 03c3466903ef142f5005f275d8ab54290fc6421d /testing | |
parent | 346fc8d9df58cde834d1af9d1508e5d602a38353 (diff) | |
download | aports-780b708be72915b19b201b4fba9838f4112c88d8.tar.bz2 aports-780b708be72915b19b201b4fba9838f4112c88d8.tar.xz |
testing/ruby-net-http-digest_auth: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-net-http-digest_auth/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/ruby-net-http-digest_auth/APKBUILD b/testing/ruby-net-http-digest_auth/APKBUILD new file mode 100644 index 0000000000..87e7d4e05f --- /dev/null +++ b/testing/ruby-net-http-digest_auth/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> + +_gemname=net-http-digest_auth +pkgname=ruby-$_gemname +pkgver=1.4 +pkgrel=0 +pkgdesc="An implementation of RFC 2617 - Digest Access Authentication" +arch="noarch" +url="http://github.com/drbrain/net-http-digest_auth" +license="MIT" +depends="ruby" +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 +} + +md5sums="ebad32b9ca084122546b7893c2d8f8e7 net-http-digest_auth-1.4.gem" +sha256sums="11f7a8c13e801455dedd8864339d5fcd6536949b99ec9b3eae193c32f20b0091 net-http-digest_auth-1.4.gem" +sha512sums="a743b278bba44541835f28ed86f94a907f7b48e8f314f0cbe6e14888a1d723c0d60cd4bbde5ac02cd263d91a5803021d9fa073d55077ac2b4c2767ebb65624cd net-http-digest_auth-1.4.gem" |