summaryrefslogtreecommitdiff
path: root/community/myodbc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/myodbc/PKGBUILD')
-rw-r--r--community/myodbc/PKGBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/community/myodbc/PKGBUILD b/community/myodbc/PKGBUILD
index be3e9f3cf..a9709614c 100644
--- a/community/myodbc/PKGBUILD
+++ b/community/myodbc/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 94357 2013-07-22 11:20:31Z spupykin $
+# $Id: PKGBUILD 100622 2013-11-06 14:11:22Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=myodbc
-pkgver=5.2.5
+pkgver=5.2.6
pkgrel=1
pkgdesc="ODBC driver/connector for mariadb"
arch=(i686 x86_64)
@@ -12,12 +12,16 @@ makedepends=('cmake')
license=('GPL')
options=('libtool')
source=("http://cdn.mysql.com/Downloads/Connector-ODBC/5.2/mysql-connector-odbc-$pkgver-src.tar.gz")
-md5sums=('909e0c3c9c341fe777d0a620c4084442')
+md5sums=('066bfed7dc472ef4b68bafc95ca45027')
build() {
cd $srcdir/mysql-connector-odbc-${pkgver}-src
- unset LDFLAGS
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_UNIXODBC=1 .
+ unset CFLAGS
+ export LDFLAGS="-lpthread -ldl"
+ cmake -G "Unix Makefiles" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMYSQLCLIENT_LIB_NAME=libmysqlclient_r.so \
+ -DWITH_UNIXODBC=1 .
make
}