aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-redmine-activemodel/APKBUILD
blob: 4e19b7a52af53fc1c491030b12deec400953c2b2 (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-redmine-activemodel
_gemname=activemodel
pkgver=3.2.19
pkgrel=0
pkgdesc="A toolkit for building modeling frameworks"
url="http://rubygems.org/gems/activemodel"
arch="noarch"
license="GPL"
depends="ruby ruby-redmine-activesupport ruby-redmine-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="93c6f903c8c997d171d6f5ccdd96e355  activemodel-3.2.19.gem"
sha256sums="4ea3abf790eca9ee8228e9e2a465350e258294270a639b63f0e1dfad236fe70e  activemodel-3.2.19.gem"
sha512sums="3d034ac261109d0450623023f57ee106957365dcdfe07f504df09d20e4a4761a53926366cdfa07edf7f018e56e29f2328eb58b65d37d4eab2d86c6eb95ff89ec  activemodel-3.2.19.gem"