# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: 
setvar _gemname = 'shoulda-context'
setvar pkgname = 'ruby-shoulda-context'
setvar pkgver = '1.1.5'
setvar pkgrel = '1'
setvar pkgdesc = ""Context framework extracted from Shoulda""
setvar url = ""https://github.com/thoughtbot/shoulda""
setvar arch = ""noarch""
setvar license = ""MIT""
setvar depends = ""ruby""
setvar depends_dev = """"
setvar makedepends = ""ruby-dev""
setvar install = """"
setvar subpackages = """"
setvar source = ""http://rubygems.org/downloads/$_gemname-$pkgver.gem""

setvar _builddir = ""$srcdir"/$_gemname-$pkgver"
proc 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
}

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

setvar md5sums = ""e16c4038899f3c529f02aa8de0630e36  shoulda-context-1.1.5.gem""
setvar sha256sums = ""151b7c22773a52fd97f0c565d79a35aefbf730509319b7eae743751c4255c31f  shoulda-context-1.1.5.gem""
setvar sha512sums = ""ad5a8cfe35d6aaac80c720e99245b066a6eafead0dd1caa4553eec26eeb004945eec14e21988d906e020bbcc435df5fab70ed6613a3ed0e3e9dc783aaec02cbd  shoulda-context-1.1.5.gem""