# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-forwardable-extended _gemname=forwardable-extended pkgver=2.6.0 pkgrel=3 pkgdesc="Extends forwardable with delegation to hashes and instance variables" url="https://github.com/envygeeks/forwardable-extended" arch="noarch" license="MIT" depends="ruby" checkdepends="ruby-rspec" source="https://github.com/envygeeks/forwardable-extended/archive/v$pkgver/$_gemname-$pkgver.tar.gz tests-remove-unnecessary-requires.patch gemspec.patch " builddir="$srcdir/$_gemname-$pkgver" build() { gem build Gem.gemspec } check() { rspec . } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" gem install \ --local \ --install-dir "$gemdir" \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname # Remove unnecessary files and rubbish... cd "$gemdir" rm -r cache build_info doc extensions } sha512sums=" 23a682e06ee823b076d6b9925a1ef4ada4f1fc7fa63b02d1b9122485204b62f55c191866170b63b34891934c762ac903df46bf5a2b17055d7504ee7a70627a8b forwardable-extended-2.6.0.tar.gz 78b698d9ef417e5e4f835b06fc2544c1b31f2550ef1ff9aa851b0a838f267c0a2ad28cfa61be945e0657dd7b028753182fcf6687e3547c0d5997e128c5ef4780 tests-remove-unnecessary-requires.patch 8cf921bfd0ff365d995e29e588935e9169b788a8a0b77fd0924d2aa7da3a3a43361254d4a0debe3eb5a1ce904e91d6273763f8b2aeb769ff27f1ff3144c9edfb gemspec.patch "