# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-em-websocket _gemname=em-websocket pkgver=0.5.2 pkgrel=0 pkgdesc="EventMachine based WebSocket server" url="https://github.com/igrigorik/em-websocket" arch="noarch" license="MIT" depends="ruby ruby-eventmachine ruby-http_parser.rb" source="https://github.com/igrigorik/em-websocket/archive/v$pkgver/$pkgname-$pkgver.tar.gz gemspec.patch " builddir="$srcdir/$_gemname-$pkgver" options="!check" # FIXME: tests require additional dependencies 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 # Remove unnecessary files and rubbish... cd "$gemdir" rm -r cache build_info doc extensions } sha512sums=" 46df705e2af93082884c7ca521df4f6cf33309c441eb3ba96be609b2cf280e3b72c689810d55279db6dbbc178ed843d64ccdaf9d4b39d52ddac7d84956065b06 ruby-em-websocket-0.5.2.tar.gz a6cf238ae0c4f51d39b7ede1318da615721618d1d2561d1a6774a4fe9f3fe61452e2e7ca711a7e2caedc8bd3bddd5a17fc212ffac60f2bc6924665cddc089af0 gemspec.patch "