# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=ruby-rmagick _gemname=rmagick pkgver=2.13.2 pkgrel=2 pkgdesc="Ruby ImageMagick interface" url="http://rmagick.rubyforge.org" arch="all" license="custom" depends="ruby ghostscript-fonts" depends_dev="ruby-dev imagemagick-dev freetype-dev libjpeg-turbo-dev zlib-dev" makedepends="$depends_dev ruby 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="732fd61f9c0af4229a0df752ed15ffb1 rmagick-2.13.2.gem"