aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-fastthread/APKBUILD
blob: 8565378871064ce23233e851fd9ad4ca61e4f80b (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: 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"