aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-openid/APKBUILD
blob: c5c61cdf278ef5a024847895934591eba9a5f558 (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
39
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-openid
_gemname=ruby-openid
# redmine 3.0 needs ~> 2.3.0
pkgver=2.3.0
pkgrel=0
pkgdesc="OpenID support for Ruby"
url="http://rubygems.org/gems/openid"
arch="noarch"
license="GPL"
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="1e1374cdcd9e7b88d7db3a25d46197f2  ruby-openid-2.3.0.gem"
sha256sums="f69ed004e95f7094e23bfd8bc9ebfb1dc88a7b46637252ca2907a1189870ea7b  ruby-openid-2.3.0.gem"
sha512sums="8cf46b4d6e2722f0a34ecc57858f23fe02b10d0f99a646adee5e07b129aa80ce256a79bea513922b4238bc312478cf395261733863af300d8dbda9f12aaf03f7  ruby-openid-2.3.0.gem"