aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-rack14/APKBUILD
blob: c60a27b83d182095848c1e7236a1e505570fd9f9 (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-rack14
_gemname=rack
pkgver=1.4.5
pkgrel=1
pkgdesc="Rack is a Ruby Webserver Interface"
url="http://rack.rubyforge.org/"
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="6661d225210f6b48f83fb279aba0a149  rack-1.4.5.gem"
sha256sums="f7bf3faa8e09a2ff26475372de36a724e7470d6bdc33d189a0ec34b49605f308  rack-1.4.5.gem"
sha512sums="061e7134a845b1ad4371b17aec2aae15add75fa6ff26b4440102e11962b18d8f89b0598ee2497a3caa2677b84f42929d901afb5b1c6db1748716f16a6039574f  rack-1.4.5.gem"