# Contributor: Francesco Colista # Maintainer: Francesco Colista _gemname=nokogiri pkgname=ruby-$_gemname pkgver=1.6.6.2 pkgrel=0 pkgdesc="Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser" arch="all" url="http://nokogiri.org" license="MIT" depends="ruby" depends_dev="ruby-dev libxml2-dev libxslt-dev" makedepends="$depends_dev" source="https://rubygems.org/downloads/$_gemname-$pkgver.gem" _builddir="$srcdir"/$_gemname-$pkgver build() { mkdir -p "$_builddir" || return 1 export _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir -- \ --use-system-libraries \ --ignore-dependencies \ --verbose \ --no-rdoc \ --no-ri \ || return 1 rm -rf "$pkgdir"/$_gemdir/cache \ "$pkgdir"/$_geminstdir/ext \ "$pkgdir"/$_geminstdir/.require_paths } package() { mkdir -p "$pkgdir" || return 1 cp -ra "$_builddir"/* "$pkgdir"/ || return 1 } md5sums="fc9f91534bf93d57b84f625b55732a7c nokogiri-1.6.6.2.gem" sha256sums="60c060c694a62145b9224413efa346de5a893582c1fbc0326bc74089c5d898c8 nokogiri-1.6.6.2.gem" sha512sums="bb0422878e690648ab154c7d1ab0bd4fd9ec0875b2f0be0292ba9cb5541ea33b770794a7ba411e603a06472af4f9a3337ec8ff5d74debd826fc63f1d3ab1d5f1 nokogiri-1.6.6.2.gem"