blob: d405c56f9090a9620fbf6bf191df2c5ef21071df (
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
pkgname=ruby-shoulda
pkgver=3.3.2
pkgrel=0
pkgdesc="Making tests easy on the fingers and eyes"
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="a925abc6f2f556fd31615e217e52bdf1 shoulda-3.3.2.gem"
sha256sums="52e70b71cbfb7c01dace14e268a62d86c21ddd1e5ec0116c8b1e632d8e04e412 shoulda-3.3.2.gem"
sha512sums="31a5066a1e17e911fa1e0fce1ebc57fa343a5e57601002280fab3762212e5e6394a611a618ea27deb6ec28655b685fd1a77e84c31feb165fad43bdc010524b02 shoulda-3.3.2.gem"
|