blob: c2edd24ffdea380c3fa01880ef1ff43fdf92641e (
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=1.4.1
pkgrel=0
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 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="03f66e5f1d2c76df58e1fd2dcc778454 shoulda-matchers-1.4.1.gem"
sha256sums="c35693cbfa84213212dffbc2c87487427ef364927340151329a842f0a06086b9 shoulda-matchers-1.4.1.gem"
sha512sums="8987e1ca8c91f504a32e3d46b33973f8f2001c31b931b5cd14089519dcf9391b064957424e03e6da5755aee0dd9688d0f6c1c8a2276af8e80369a89b83f9018f shoulda-matchers-1.4.1.gem"
|