aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-thread_safe/APKBUILD
blob: 541fef6cd8f8d7c6f885f23b0304d7dc55b00d49 (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: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer:
_gemname=thread_safe
pkgname=ruby-$_gemname
pkgver=0.3.3
pkgrel=0
pkgdesc="Thread-safe collections and utilities for Ruby "
url="http://rubygems.org/gems/$_gemname"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="$depends_dev"
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="22479bb496df25dc183c42c109fb8ebf  thread_safe-0.3.3.gem"
sha256sums="f0f4307ea85d6eff7f9c304587073e3465da58beb198ea686bf69ec87f2ddb7e  thread_safe-0.3.3.gem"
sha512sums="332d37f9e6d848a5a04ec1c740f38d4d33e70fb00f574f5fe910c51bf6c9ee8122b7fc30a03aed0beba0bd730766c5c833332b2636d2dbede30ed396c53b6666  thread_safe-0.3.3.gem"