aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-net-http-persistent/APKBUILD
blob: 24783cf60ba8be681c7c8171bcda9a42925de18e (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>

_gemname=net-http-persistent
pkgname=ruby-$_gemname
pkgver=2.9.4
pkgrel=0
pkgdesc="Manages persistent connections using Net::HTTP plus a speed fix for Ruby 1.8"
arch="noarch"
url="http://docs.seattlerb.org/net-http-persistent"
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="61cb21cccc85ddca77ee58af25bcf51f  net-http-persistent-2.9.4.gem"
sha256sums="24274d207ffe66222ef70c78a052c7ea6e66b4ff21e2e8a99e3335d095822ef9  net-http-persistent-2.9.4.gem"
sha512sums="9251e8422c2f43e7ecd8bc287fa9fff682fac84ed95d143425b0e7e7678a06c9be01db56e6a956588d6c33ddccbd1eff45a6f399f43d452de8e3134e6c50b74e  net-http-persistent-2.9.4.gem"