aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-activerecord/APKBUILD
blob: b443684e8ce2605ea51db4398ef00628a1e99ab6 (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>
_gemname=activerecord
pkgname=ruby-$_gemname
pkgver=3.2.12
pkgrel=0
pkgdesc="Ruby ActiveRecord pattern (Fowler, PoEAA) for ORM"
url="https://rubyforge.org/projects/activerecord/"
arch="noarch"
license="GPL"
depends="ruby ruby-activemodel ruby-activesupport ruby-arel ruby-tzinfo"
depends_dev=
makedepends="$depends_dev ruby-gems"
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="842fdaee77a6a017b0f374141c2900ea  activerecord-3.2.12.gem"
sha256sums="d16b747d7ed852e8ba3fbedd41731660463499678cec988e17c7b337b68f883a  activerecord-3.2.12.gem"
sha512sums="09518afb215935d07f8084d84b987caeff02201f5baf017d54b75d2a3528ed8f87188d13423dd5f49ebf8778311c71f4f847d94d16bd05245d5b61b113df16de  activerecord-3.2.12.gem"