aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-activerecord4.2/APKBUILD
blob: af0ab9ed1fd8a99ec25c86740e16dcbb4cf79cd7 (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>
_gemname=activerecord
pkgname=ruby-${_gemname}4.2
pkgver=4.2.3
pkgrel=0
pkgdesc="Ruby ActiveRecord pattern (Fowler, PoEAA) for ORM"
url="http://rubygems.org/gems/activerecord"
arch="noarch"
license="GPL"
depends="ruby ruby-activemodel4.2 ruby-activesupport4.2
	ruby-arel"
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="bc917ec18b1d4fc6162f2ed763f69fb6  activerecord-4.2.3.gem"
sha256sums="74e64271950702aa870689532ce2173348760a00c6a54760c5625c7b9734cefe  activerecord-4.2.3.gem"
sha512sums="709f99c87a6efcddeb41cd40e92beb1ab1c6b10bf8e47d6222565d2ce64affc61d9792523ca95f735d412c7ef12ef56434722df77d4ef84f35b1065f87d0cf4f  activerecord-4.2.3.gem"