aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-shoulda-context/APKBUILD
blob: c561a828eb0463be17f6fe14b250b4f239f30d6f (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
40
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: 
_gemname=shoulda-context
pkgname=ruby-shoulda-context
pkgver=1.0.2
pkgrel=0	
pkgdesc="Context framework extracted from Shoulda"
url="https://github.com/thoughtbot/shoulda"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="ruby-dev ruby-gems"
install=""
subpackages=""
source="http://rubygems.org/downloads/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_gemname-$pkgver
build() {
	mkdir -p "$_builddir" || return 1
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
		--ignore-dependencies \
		--verbose \
		--no-rdoc \
		--no-ri \
		|| return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

package() {
	mkdir -p "$pkgdir" || return 1
	cp -ra "$_builddir"/* "$pkgdir"/ || return 1
}

md5sums="01ad6b98a2644bda239037553ef2ccce  shoulda-context-1.0.2.gem"
sha256sums="ee5559aa13248c70fdec6868a3c144adf7438c904c59d1a76b04a002e5151de5  shoulda-context-1.0.2.gem"
sha512sums="557b85b4e4941bfa92595e8b5f1c1cd37c10f82c2f65a4f645a2f7c56043ef67f7a8ae67fc66aee4ce450261c38f595b455a711159789227cfce14a7e341e7df  shoulda-context-1.0.2.gem"