1 # $Id: PKGBUILD 20546 2010-07-09 04:28:23Z tdziedzic $
2 # Contributor: William Rea <sillywilly@gmail.com>
3 # Previous Maintainer: Bjorn Lindeijer <bjorn lindeijer nl>
4 # Previous Maintainer: Geoffroy Carrier <geoffroy.carrier@koon.fr>
5 # Maintainer: Alexsandr Pavlov <kidoz at mail dot ru>
10 pkgdesc="A Ruby interface for the SQLite3 database engine."
11 arch=('i686' 'x86_64')
12 url="http://rubygems.org/gems/sqlite3-ruby"
14 depends=('ruby' 'ruby-hoe' 'ruby-rake-compiler' 'ruby-rubyforge' 'sqlite3')
15 makedepends=(rubygems)
16 source=(http://rubygems.org/downloads/$pkgname-$pkgver.gem)
17 noextract=($pkgname-$pkgver.gem)
18 md5sums=('fb6a4837495c211f7553e5daffa67a01')
22 # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
23 # makepkg will exit with an error when sourcing the PKGBUILD
24 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
26 gem install --ignore-dependencies -i "$pkgdir$_gemdir" $pkgname-$pkgver.gem