aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-bcrypt/APKBUILD
blob: 7b35b50941e07072db74b225bbd4894c64510371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Brad Murray <wyaeld@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
_gemname=bcrypt
pkgname=ruby-bcrypt
pkgver=3.1.11
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=""
makedepends="$depends_dev ruby-dev"
install=""
subpackages=""
source="https://rubygems.org/downloads/$_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="3048f1bd080b9e6cc856a22c84b8577b  bcrypt-3.1.11.gem"
sha256sums="a0fc22135205c851f46e8a661de8be242d54951cbd2c37a6fad5c8069b2645b4  bcrypt-3.1.11.gem"
sha512sums="bf9ff0d3cdd7044b4ee5796cd04869f21bb3384143b0f336bc2cd9a8f0db3f9562aa23a39601c1d86f153b62f07469ef066616f8a52cfcd840377e331cb22454  bcrypt-3.1.11.gem"