mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
29 lines
884 B
Bash
29 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
|
||
|
}
|