aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-kgio/APKBUILD
blob: 003ba517805cf0b05df445c682c48319581445d7 (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
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
_gemname=kgio
pkgname=ruby-kgio
pkgver=2.9.2
pkgrel=0
pkgdesc="Provides non-blocking I/O methods for Ruby"
url="http://bogomips.org/kgio"
arch="all"
license="MIT"
depends="ruby"
depends_dev="ruby-dev"
makedepends="$depends_dev ruby"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_realname-$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 || return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

md5sums="6ae37a3af82d36da1efd7670e0b2003b  kgio-2.9.2.gem"
sha256sums="42f0cdeb3e508e67e33b65b7c0b52fb1def349aef0d8806542d1f137b3fe468f  kgio-2.9.2.gem"
sha512sums="4a8c2eb0c01bc17134443333ecfe09389c49b02aef03b822bce39fab2fc772ecaf1a6a9021ebe7c08fb2a6abee3e787959e1feed36f51acf90c95fdce8540b3c  kgio-2.9.2.gem"