aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-shoulda/APKBUILD
blob: 9f4845ce783c57649dda388a9b675b21ce89dd29 (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.5.0
pkgrel=1
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"
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="a6b1c7be5f2674661edfbb04989035a3  shoulda-3.5.0.gem"
sha256sums="be7a69fb1dae41922ea8a5a8cdab148b3870b322ca5152b0b391d5a34a705533  shoulda-3.5.0.gem"
sha512sums="9f9b4c2fa5968bad0a03c5838ead637e89817f2608dfdf477d84d4cc8bf0a5e9ff905db6aec527fe36495729ec4073bc478500e8a13364824e354bb4ea28297a  shoulda-3.5.0.gem"