blob: cdc5e6c07fba81ec54c19c0dcafde2f596e1e2ec (
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: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-rspec-support
_gemname=${pkgname#ruby-}
pkgver=3.7.0
pkgrel=1
pkgdesc="Support utilities for RSpec gems"
url="https://relishapp.com/rspec/rspec-support/"
arch="noarch"
license="MIT"
depends="ruby"
options="!check" # rspec's tests are written in rspec
source="$pkgname-$pkgver.tar.gz::https://github.com/rspec/$_gemname/archive/v$pkgver.tar.gz
gemspec.patch"
builddir="$srcdir/$_gemname-$pkgver"
build() {
cd "$builddir"
gem build $_gemname.gemspec
}
package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
cd "$builddir"
gem install --local \
--install-dir "$gemdir" \
--ignore-dependencies \
--no-document \
--verbose \
$_gemname
# Clean-up...
rm -r "$gemdir"/cache \
"$gemdir"/build_info \
"$gemdir"/doc
}
sha512sums="a4a3fc705d4c31d760777513f86d8b0ca4c9e540b0a6f4b6d1152676f252e1276fedebe7cd259f0dbbb60b447cc179eea194f3a3e5bb023907923cbf16fc8033 ruby-rspec-support-3.7.0.tar.gz
e9d611ea1789e835f742aa92f1e668840139e2621898edf158dc53e111db4119a324da65d2d28f5c6e737c82f261f4adb3beb8c244ee01d2f618778ed62d3731 gemspec.patch"
|