summaryrefslogtreecommitdiffstats
path: root/main/ruby-rack/APKBUILD
blob: 66e6743bee0a2ab23bc169fb24e837acaf4c275b (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-rack
_gemname=rack
pkgver=1.5.2
pkgrel=0
pkgdesc="Rack is a Ruby Webserver Interface"
url="http://rack.rubyforge.org/"
arch="noarch"
license="MIT"
depends="ruby"
depends_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="02067ea717f5d2e4b8e0bcd5155fcbc5  rack-1.5.2.gem"
sha256sums="e64af00234e8faaa69ea81ef4e3800f40743c69560f0dda8fc9969660e775fa7  rack-1.5.2.gem"
sha512sums="13794c73b40a8dc0df017843a4a019d584f7a1fc8f6c29043a013fe7e8f47c5a95eb3a289357fe0a02ca5846591eb380fb1e3293a8b5564ec93ebacf5d48d0f0  rack-1.5.2.gem"