blob: d6716bf704c224f0ee5b8963d26a54df48c9df83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $Id: PKGBUILD 56720 2011-10-11 09:17:30Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=myodbc
pkgver=5.1.9
pkgrel=1
pkgdesc="ODBC driver/connector for MySQL"
arch=(i686 x86_64 'mips64el')
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}.tar.gz"
myconf.h.in)
md5sums=('80f146bd384a9011d968aa67df27e68e'
'6c99c83e309b18d15ef0f07f0b461241')
build() {
cd $srcdir/mysql-connector-odbc-${pkgver}
cp $srcdir/myconf.h.in driver/myconf.h.in
[ -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
make
}
package() {
cd $srcdir/mysql-connector-odbc-${pkgver}
make DESTDIR=$pkgdir install
}
|