aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-metaclass/APKBUILD
blob: d0aeba80cb7d768edf7913e05298c24a6d1ac2ae (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=metaclass
pkgname=ruby-$_gemname
pkgver=0.0.4
pkgrel=1
pkgdesc="Adds a metaclass method to all Ruby objects"
url="http://github.com/floehopper/metaclass"
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="d1be0d91647fe95df6232b30a2813bec  metaclass-0.0.4.gem"
sha256sums="8569685c902108b1845be4e5794d646f2a8adcb0280d7651b600dab0844fe942  metaclass-0.0.4.gem"
sha512sums="67326faf2384e53a2a1096f499cb6af35e5a7d5928eefeef81bae0519739aef78da6e196b62e904fb3247dd09d1bb3411e227473c155e7a8c20420408107e325  metaclass-0.0.4.gem"