diff options
Diffstat (limited to 'unmaintained/ruby-fastthread')
-rw-r--r-- | unmaintained/ruby-fastthread/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/unmaintained/ruby-fastthread/APKBUILD b/unmaintained/ruby-fastthread/APKBUILD new file mode 100644 index 0000000000..8565378871 --- /dev/null +++ b/unmaintained/ruby-fastthread/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Matt Smith <mcs@darkregion.net> +# Maintainer: Matt Smith <mcs@darkregion.net> +pkgname=ruby-fastthread +_gemname=fastthread +pkgver=1.0.7 +pkgrel=1 +pkgdesc="Optimized replacement for thread.rb primitives" +url="http://rubygems.org/gems/fastthread" +arch="noarch" +license="GPL" +depends="ruby" +depends_dev="" +makedepends="$depends_dev ruby-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="16eb06dc3661c89301de6c73c71bb16e fastthread-1.0.7.gem" +sha256sums="bd1a8cea1dcf4ad590a8170dbb3468a94a4530fa9010b717a19ad78cae7a7600 fastthread-1.0.7.gem" +sha512sums="71c6901ba691e3a4b6f77ad29f02be1fb0c4144226d0cd915b428301ca52f3e23ce23cd1e90696dbc31960ae8e9582eb751a5eeacf24386ac033ffab08807ad5 fastthread-1.0.7.gem" |