PKGBUILDs/community/myodbc/PKGBUILD
2009-10-09 21:15:33 -05:00

28 lines
884 B
Bash

pkgname=myodbc
pkgver=5.1.5
_suffix=r1144
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}${_suffix}.tar.gz"
myodbc-build-fix.patch)
md5sums=('bfe284789154c6071311325415de541c'
'213c66f7e4343ee3f786c74f59db2064')
build() {
cd $startdir/src/mysql-connector-odbc-${pkgver}${_suffix}
[ $NOEXTRACT -eq 1 ] || ./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
patch -p1 <$srcdir/myodbc-build-fix.patch
make || return 1
make DESTDIR=$startdir/pkg install
}