aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-shoulda-matchers/APKBUILD
blob: 06a5a7f13fc808e68deb4005b0edc75af2ae6cbd (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-matchers
pkgname=ruby-shoulda-matchers
pkgver=2.3.0
pkgrel=1
pkgdesc="Making tests easy on the fingers and eyes"
url="https://github.com/thoughtbot/shoulda"
arch="noarch"
license="MIT"
depends="ruby ruby-activesupport"
depends_dev=""
makedepends="ruby-dev"
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="1e744b07ff43eee61b060f3d3d4d8e82  shoulda-matchers-2.3.0.gem"
sha256sums="90b4419b54b272148f388a90f7f9f29181e3b8b694190491a3a301cab7a67e25  shoulda-matchers-2.3.0.gem"
sha512sums="cde2da35fbc9125541461d24cff573656dad3b1d320a30aeabf9a837599abc529a97264679e320e5000259e3a5d1892cea9119017f9c82d6a54f5f5c081748fe  shoulda-matchers-2.3.0.gem"