diff options
Diffstat (limited to 'community/myodbc/PKGBUILD')
-rw-r--r-- | community/myodbc/PKGBUILD | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/community/myodbc/PKGBUILD b/community/myodbc/PKGBUILD index 6e55b0794..d933da1aa 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 'mips64el') 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 } |