summaryrefslogtreecommitdiff
path: root/community/myodbc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-19 00:02:33 +0000
committerroot <root@rshg054.dnsready.net>2012-05-19 00:02:33 +0000
commit5d334c7470b5851fbacd4545c8ee0ea676a21ccc (patch)
tree9fd6a98989a409178f5db098aaf2ffa8a646dd48 /community/myodbc
parent2f104ecf78d6a93ba8d67273b76364cb1365a6cf (diff)
Sat May 19 00:02:33 UTC 2012
Diffstat (limited to 'community/myodbc')
-rw-r--r--community/myodbc/PKGBUILD31
1 files changed, 13 insertions, 18 deletions
diff --git a/community/myodbc/PKGBUILD b/community/myodbc/PKGBUILD
index f7431306e..88c327e25 100644
--- a/community/myodbc/PKGBUILD
+++ b/community/myodbc/PKGBUILD
@@ -1,38 +1,33 @@
-# $Id: PKGBUILD 70531 2012-05-10 15:58:32Z spupykin $
+# $Id: PKGBUILD 70836 2012-05-17 14:29:47Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=myodbc
pkgver=5.1.11
-pkgrel=2
+pkgrel=3
pkgdesc="ODBC driver/connector for MySQL"
arch=(i686 x86_64)
url="http://dev.mysql.com/downloads/connector/odbc/"
depends=('unixodbc' 'libmysqlclient')
+makedepends=('cmake')
license=('GPL')
options=('libtool')
-source=("http://mysql.skynet.be/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-$pkgver-src.tar.gz"
- myconf.h.in)
-md5sums=('1d868f404038bbce6623a28255c8a9f7'
- '6c99c83e309b18d15ef0f07f0b461241')
+source=("http://mysql.skynet.be/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-$pkgver-src.tar.gz")
+md5sums=('1d868f404038bbce6623a28255c8a9f7')
build() {
cd $srcdir/mysql-connector-odbc-${pkgver}-src
- cp $srcdir/myconf.h.in driver/myconf.h.in
- patch driver/Makefile.am <<EOF
-55c55,56
-< driver.h
----
-> driver.h \\
-> my_stmt.c
-EOF
- [ -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
+ unset LDFLAGS
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_UNIXODBC=1 .
make
}
package() {
cd $srcdir/mysql-connector-odbc-${pkgver}-src
make DESTDIR=$pkgdir install
+ pushd $pkgdir/usr
+ rm -rf test
+ install -dm0755 share/mysql-connector-odbc
+ mv ChangeLog COPYING INSTALL Licenses_for_Third-Party_Components.txt README README.debug \
+ share/mysql-connector-odbc/
+ popd
}