# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-net-imap _gemname=net-imap # Keep version in sync with "Bundled gems" (https://stdgems.org) for the # packaged Ruby version. pkgver=0.3.4 pkgrel=0 pkgdesc="Ruby client api for Internet Message Access Protocol" url="https://github.com/ruby/net-imap" arch="noarch" license="BSD-2-Clause AND Ruby" depends="ruby" checkdepends="ruby-rake ruby-test-unit" makedepends="ruby-rdoc" subpackages="$pkgname-doc" source="https://github.com/ruby/net-imap/archive/v$pkgver/$_gemname-$pkgver.tar.gz gemspec.patch " builddir="$srcdir/$_gemname-$pkgver" prepare() { default_prepare sed -i '/require .bundler/d' Rakefile } build() { gem build $_gemname.gemspec } check() { rake test } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" gem install \ --local \ --install-dir "$gemdir" \ --ignore-dependencies \ --document ri \ --verbose \ $_gemname # Remove unnessecary files cd "$gemdir" rm -rf build_info cache extensions plugins } doc() { pkgdesc="$pkgdesc (ri docs)" amove "$(ruby -e 'puts Gem.default_dir')"/doc } sha512sums=" ced2433212738e1c54b783602dc8ed79b0d6fabef0d830d12e4d1a8b7f1df896596499a4b986dab1ac8e1e389bf88f87c854ceafbe57b7ad1cf5c0db29223ba1 net-imap-0.3.4.tar.gz 4185c7402f16425c2c62ac074d0bab7406dcd9dd90d969836274e0599cea479501c402eab0d696cffe2afd5f4663434f13df9867811e2e0b14a5bc565d18ab04 gemspec.patch "