summaryrefslogtreecommitdiff
path: root/community/myodbc/PKGBUILD
blob: 30705c69320273570ac5cc59359a6aca424168c6 (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
32
33
34
35
36
37
38
# $Id: PKGBUILD 42568 2011-03-17 15:04:00Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=myodbc
pkgver=5.1.8
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}.tar.gz"
	myodbc-64bit.patch
	myodbc-add-mysys.patch
	myodbc-my-free.patch
	myodbc-shutdown.patch)
md5sums=('c64d8cec9de453bdf48fcb168643b943'
         '142a985fa0d3273df04399148ef27533'
         '8d019f9b6a10a6a56d835e7e4e22d215'
         '2d1636160af606323014b112c9481cf2'
         'ec43ad7b5c887a7de4b6024899ff886c')

build() {
  cd $srcdir/mysql-connector-odbc-${pkgver}

  [ $NOEXTRACT -eq 1 ] || patch -p1 <$srcdir/myodbc-64bit.patch
  [ $NOEXTRACT -eq 1 ] || patch -p1 <$srcdir/myodbc-add-mysys.patch
  [ $NOEXTRACT -eq 1 ] || patch -p1 <$srcdir/myodbc-my-free.patch
  [ $NOEXTRACT -eq 1 ] || patch -p1 <$srcdir/myodbc-shutdown.patch

  [ $NOEXTRACT -eq 1 ] || CFLAGS=-DTHREAD LDFLAGS=-lmysqld ./configure --prefix=/usr --sysconfdir=/etc --with-unixODBC=/usr \
    --with-mysql-path=/usr --without-samples --enable-thread-safe \
    --without-x --without-qt --disable-gui --enable-shared \
    --disable-static --disable-test
  make
  make DESTDIR=$pkgdir install
}