# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-rspec-core _gemname=${pkgname#ruby-} pkgver=3.7.0 pkgrel=1 pkgdesc="RSpec runner and formatters" url="https://relishapp.com/rspec/rspec-core/" arch="noarch" license="MIT" depends="ruby ruby-rspec-support>=${pkgver%.*}.0" 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" \ --bindir "$pkgdir/usr/bin" \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname # Clean-up... rm -r "$gemdir"/cache \ "$gemdir"/build_info \ "$gemdir"/doc } sha512sums="071bd2a5c905d4ce621f2d7255b882a9d34cf42001cb2995fdb05a91387805929198c32e53cf4c2df2a43d179d2c49337214066be87eb50ab044b5f70aba8c54 ruby-rspec-core-3.7.0.tar.gz e0cbcfddcc4c73d9b9673907e3b1a785b399c0b3b213761e9dbca9fadc55d50a88389eaf561f5603bd674eb94ce9f2ecf829d884eaa77df8ef1b565c0c7f25f2 gemspec.patch"