summaryrefslogtreecommitdiffstats
path: root/main/ruby-activemodel/APKBUILD
blob: 17e1f72b7847ba300d4243ebf737689886e34e44 (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>
pkgname=ruby-activemodel
_gemname=activemodel
pkgver=4.0.0
pkgrel=1
pkgdesc="A toolkit for building modeling frameworks"
url="http://rubygems.org/gems/activemodel"
arch="noarch"
license="GPL"
depends="ruby ruby-activesupport ruby-builder"
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="6d81217b82d5451798dfc8e727059604  activemodel-4.0.0.gem"
sha256sums="a2961ce7a5926365f9217dab24fc0437d503eb8e37d21fa17d3f3bafff2a586f  activemodel-4.0.0.gem"
sha512sums="5ba27377252870b3384f88e1585023346cd5594d8775d1e2f0800c76811ec5ca7ed27fd8a0d2e6315a301457afb6a3b4b3dcae9b7407fb5c061c00c186b32828  activemodel-4.0.0.gem"