diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-thread_safe/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-thread_safe/APKBUILD b/testing/ruby-thread_safe/APKBUILD new file mode 100644 index 0000000000..541fef6cd8 --- /dev/null +++ b/testing/ruby-thread_safe/APKBUILD @@ -0,0 +1,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" |