diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/myodbc/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/myodbc/PKGBUILD')
-rw-r--r-- | community/myodbc/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
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 <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 +} |