# $Id: PKGBUILD 3198 2009-09-29 22:56:53Z ebelanger $ # Maintainer: Douglas Soares de Andrade # Contributor: Markku pkgname=mysql-ruby pkgver=2.8.1 pkgrel=2 pkgdesc="This is the MySQL API module for Ruby." arch=('i686' 'x86_64') license=('GPL') url="http://tmtm.org/downloads/mysql/ruby" depends=('ruby>=1.9' 'libmysqlclient') source=(http://tmtm.org/downloads/mysql/ruby/$pkgname-$pkgver.tar.gz) md5sums=('83b068619f6e9cfb5778125673462f09') sha1sums=('9a5c04cc17be6d92c57756866b8abb894da7ca90') build() { cd "$srcdir/$pkgname-$pkgver" ruby extconf.rb || return 1 ruby extconf.rb --with-mysql-config || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 }