# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-rspec _gemname=${pkgname#ruby-} pkgver=3.12.0 pkgrel=1 pkgdesc="Behaviour Driven Development for Ruby" url="http://rspec.info/" arch="noarch" license="MIT" depends="ruby ruby-rspec-core~=${pkgver%.*} ruby-rspec-expectations~=${pkgver%.*} ruby-rspec-mocks~=${pkgver%.*}" options="!check" # no tests provided source="$pkgname-$pkgver.tar.gz::https://github.com/rspec/rspec-metagem/archive/v$pkgver.tar.gz gemspec.patch" builddir="$srcdir/rspec-metagem-$pkgver" build() { gem build $_gemname.gemspec } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" gem install --local \ --install-dir "$gemdir" \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname # Clean-up... rm -r "$gemdir"/cache \ "$gemdir"/build_info \ "$gemdir"/doc } sha512sums=" 49769e54cbc5436b6f25406b9c65baedbe9cc0bd39887ff089eda6ac80b3b5669ec3ebd0935fb223e4b3778c9c39f4c2e2fb3b631428e1800946605d530b3f12 ruby-rspec-3.12.0.tar.gz f554eef881574e68532dd6c9edeb6b8ad172ac707f7518134378e1099a40ada959c6c770514aab13a6345343113594208be0e42044803c0c2cde3adde00c5520 gemspec.patch "