summaryrefslogtreecommitdiff
path: root/community/mysql-ruby/PKGBUILD
blob: 71bad6667d0e5f0fec6a9e119fad111f873257ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 42318 2011-03-16 11:01:28Z jelle $
# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
# Contributor: Markku <rasat@user-contributions.org>

pkgname=mysql-ruby
pkgver=2.8.2
pkgrel=2
pkgdesc='This is the MySQL API module for Ruby.'
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url='http://tmtm.org/downloads/mysql/ruby'
depends=('ruby' 'libmysqlclient')
source=("http://tmtm.org/downloads/mysql/ruby/${pkgname}-${pkgver}.tar.gz")
md5sums=('eb998b89b7e391cffe0a1f84bd426f9b')

build() {
  cd ${pkgname}-${pkgver}

  ruby extconf.rb

  ruby extconf.rb --with-mysql-config

  make
}

package() {
  cd ${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install
}