aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-openid/APKBUILD
blob: 37f5399596a5bf4e4bae764082b8fd2fda73830e (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-openid
_gemname=ruby-openid
pkgver=2.6.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="6c02f4dbf316cc3ec47a09cacac4bf6a  ruby-openid-2.6.0.gem"
sha256sums="b57d81b2fe44094fc007465cbee7f665f4acd87c9d4d38ea626d0aa942ef65f7  ruby-openid-2.6.0.gem"
sha512sums="dfa9ceaf8f7fa078aa2e42f8e00622f6a80216b5c3777b8e75ab0e31f6a83de72975dc9ff3416cb4b29e129a4f99953ac7a8b0335ac9b401938332cca5739276  ruby-openid-2.6.0.gem"