diff options
author | Brad Murray <wyaeld@gmail.com> | 2015-03-08 01:46:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-09 07:52:51 +0000 |
commit | c894b68df536e655b9cf2172e7a90f09088052b8 (patch) | |
tree | 13418eb279b34ac9bb0ddb4f266f04fa02372ff7 /testing/ruby-bcrypt/APKBUILD | |
parent | b9235db26f7535c6377f393017d9547083d2523d (diff) | |
download | aports-c894b68df536e655b9cf2172e7a90f09088052b8.tar.bz2 aports-c894b68df536e655b9cf2172e7a90f09088052b8.tar.xz |
testing/ruby-bcrypt: new aport
Ruby gem wrapper for the OpenBSD bcrypt library for safely handling passwords
https://github.com/codahale/bcrypt-ruby
Diffstat (limited to 'testing/ruby-bcrypt/APKBUILD')
-rw-r--r-- | testing/ruby-bcrypt/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-bcrypt/APKBUILD b/testing/ruby-bcrypt/APKBUILD new file mode 100644 index 0000000000..cffb9ba387 --- /dev/null +++ b/testing/ruby-bcrypt/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Brad Murray <wyaeld@gmail.com> +# Maintainer: +_gemname=bcrypt +pkgname=ruby-bcrypt +pkgver=3.1.10 +pkgrel=0 +pkgdesc="bcrypt is a sophisticated and secure hash algorithm designed by The OpenBSD project for hashing passwords." +url="https://github.com/codahale/bcrypt-ruby" +arch="all" +license="MIT" +depends="ruby" +depends_dev="ruby-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_gemname-$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 -- --use-system-libraries || \ + return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="10521932110c607df4536136b92809e2 bcrypt-3.1.10.gem" +sha256sums="86d25b7eaec3db734bf681aa0e3d58e121766d75c849113aeb602549ff3f8e95 bcrypt-3.1.10.gem" +sha512sums="11e7a1ea28c53d22354abd3891b88c5f58bd8c18611a2964db69e56e5f9b819e5af184423fbd7fb2ebd1fb84b1618fbd043f0bfd62902515a07427846bef607a bcrypt-3.1.10.gem" |