aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-rails-observers/APKBUILD
blob: cd6d395fc1a5e6ad5013e0f1b7dc64c74f8fff87 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
_gemname=rails-observers
pkgname=ruby-$_gemname
pkgver=0.1.2
pkgrel=0
pkgdesc="Rails observer"
url=http://rubyonrails.org/
arch=noarch
license=MIT
depends="ruby ruby-activemodel"
makedepends=ruby
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="346b2722bcef9e6bda14c1567acad58d  rails-observers-0.1.2.gem"
sha256sums="9e71de73929a9a7e8cde83c041989bbb25914f84047ce15dde37eefa650a5cd3  rails-observers-0.1.2.gem"
sha512sums="f3852626ee5bea57873a774e805c9648c086c63459e9bc469cb7aaae1a5c60370b3a2105250637ca99a1fa10e121178bf1ff9dad05eecb8679e1ab8c7a026928  rails-observers-0.1.2.gem"