From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/myodbc/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 community/myodbc/PKGBUILD (limited to 'community/myodbc/PKGBUILD') diff --git a/community/myodbc/PKGBUILD b/community/myodbc/PKGBUILD new file mode 100644 index 000000000..30705c693 --- /dev/null +++ b/community/myodbc/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 42568 2011-03-17 15:04:00Z spupykin $ +# Maintainer: Sergej Pupykin + +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 +} -- cgit v1.2.3-54-g00ecf