aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-redmine-activerecord/APKBUILD
blob: 5298691ddcc045c0774701f0273ca1296780f2da (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-redmine-$_gemname
pkgver=3.2.21
pkgrel=0
pkgdesc="Ruby ActiveRecord pattern (Fowler, PoEAA) for ORM"
url="http://rubygems.org/gems/activerecord"
arch="noarch"
license="GPL"
depends="ruby ruby-redmine-activemodel ruby-redmine-activesupport ruby-redmine-arel ruby-redmine-tzinfo"
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="9409884fc84a8a5cd9a4b2719cfc6483  activerecord-3.2.21.gem"
sha256sums="ce58a644c02bfb7dfde9e272dd5be0369f528b962eb6961c0fd3ee05c95fda34  activerecord-3.2.21.gem"
sha512sums="29316466e4dc03b65a4432af1cc6d5bd3904a5310f94b50b414160ae5521ee3eee58334fc8918332f46014b2baf6c926ec81d76b47c245aa8132894a6579322c  activerecord-3.2.21.gem"