summaryrefslogtreecommitdiff
path: root/community/myodbc/PKGBUILD
blob: 97e494a30973bcab298fdcb29acf055e782ead79 (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
31
# $Id: PKGBUILD 69979 2012-04-27 16:17:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=myodbc
pkgver=5.1.10
pkgrel=1
pkgdesc="ODBC driver/connector for MySQL"
arch=(i686 x86_64)
url="http://dev.mysql.com/downloads/connector/odbc/"
depends=('unixodbc' 'libmysqlclient')
license=('GPL')
options=('libtool')
source=("http://mysql.cce.usp.br/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-${pkgver}-src.tar.gz"
	myconf.h.in)
md5sums=('71d570a7f6839b81d101bf803e4f864a'
         '6c99c83e309b18d15ef0f07f0b461241')

build() {
  cd $srcdir/mysql-connector-odbc-${pkgver}-src
  cp $srcdir/myconf.h.in driver/myconf.h.in
  [ -x configure ] || { aclocal; libtoolize; automake --add-missing; autoreconf; }
  [ -f Makefile ] || CFLAGS="$CFLAGS -DTHREAD" \
	./configure --prefix=/usr --sysconfdir=/etc --with-unixODBC=/usr --with-odbc-ini=/etc/odbc.ini \
		--with-mysql-path=/usr --without-x --disable-gui --disable-test
  make
}

package() {
  cd $srcdir/mysql-connector-odbc-${pkgver}-src
  make DESTDIR=$pkgdir install
}