# Maintainer: Carlo Landmeter pkgname=ruby-mysql2 _gemname=mysql2 pkgver=0.3.13 pkgrel=0 pkgdesc="A simple, fast Mysql library for Ruby, binding to libmysql" url="https://github.com/brianmario/mysql2" arch="all" license="MIT" depends="ruby" depends_dev="ruby-dev mysql-dev" makedepends="$depends_dev ruby-gems" install="" subpackages="" source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" _builddir="$srcdir"/$_realname-$pkgver build() { return 0 } package() { local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" local _geminstdir=$_gemdir/gems/$_gemname-$pkgver mkdir -p "$pkgdir" || return 1 gem install --local --install-dir "$pkgdir"/$_gemdir \ --ignore-dependencies --verbose --no-rdoc --no-ri \ "$srcdir"/$_gemname-$pkgver.gem || return 1 rm -rf "$pkgdir"/$_gemdir/cache \ "$pkgdir"/$_geminstdir/ext \ "$pkgdir"/$_geminstdir/.require_paths } md5sums="ee8dfc03421a1db9f6147d2efde7ced8 mysql2-0.3.13.gem" sha256sums="2db9bc0d2abf6b505625984300c74705cdd6a0464404095499d728cc897d307d mysql2-0.3.13.gem" sha512sums="f0e077188bdc33386ae97142a9f0af1a7796aecabb958c65dafc7405304f044d8781b4876030968ded298a0387b7693bf07bf56c5d7dfcd09134991b23f98dc1 mysql2-0.3.13.gem"