PKGBUILDs/community/mysql-ruby/PKGBUILD
2009-10-09 21:15:33 -05:00

23 lines
751 B
Bash

# $Id: PKGBUILD 3198 2009-09-29 22:56:53Z ebelanger $
# Maintainer: Douglas Soares de Andrade <dsa@aur.archlinux.org>
# Contributor: Markku <rasat@user-contributions.org>
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
}