[arch-commits] Commit in mysql-clients/trunk (PKGBUILD)
Douglas Soares de Andrade
douglas at archlinux.org
Tue Mar 24 07:31:53 UTC 2009
Date: Tuesday, March 24, 2009 @ 03:31:53
Author: douglas
Revision: 31057
upgpkg: mysql-clients 5.1.32-1
Modified:
mysql-clients/trunk/PKGBUILD
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++------------
1 file changed, 31 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-03-24 07:18:37 UTC (rev 31056)
+++ PKGBUILD 2009-03-24 07:31:53 UTC (rev 31057)
@@ -2,36 +2,55 @@
# Maintainer: judd <jvinet at zeroflux.org>
pkgname=mysql-clients
-pkgver=5.0.77
+pkgver=5.1.32
pkgrel=1
pkgdesc="MySQL client tools"
arch=(i686 x86_64)
depends=("libmysqlclient>=${pkgver}")
-makedepends=('tcp_wrappers' 'libtool' 'gcc')
+makedepends=('tcp_wrappers' 'libtool' 'gcc' 'readline')
url=('http://www.mysql.com/')
options=('!libtool')
license=('GPL')
-source=(ftp://ftp.pucpr.br/mysql/Downloads/MySQL-5.0/mysql-$pkgver.tar.gz)
+source=(ftp://ftp.pucpr.br/mysql/Downloads/MySQL-5.1/mysql-$pkgver.tar.gz)
build() {
cd $startdir/src/mysql-${pkgver}
+
./configure --prefix=/usr --libexecdir=/usr/sbin \
- --localstatedir=/var --sysconfdir=/etc \
- --without-debug --without-docs --without-bench --without-readline \
- --with-innodb --enable-local-infile --with-openssl \
- --with-charset=latin1 --with-collation=latin1_general_ci \
- --with-extra-charsets=complex --enable-thread-safe-client \
- --with-libwrap --with-berkeley-db --disable-server
-
- for dir in include strings regex mysys dbug extra; do
+ --localstatedir=/var --sysconfdir=/etc \
+ --without-debug --without-docs --without-readline \
+ --enable-local-infile --with-ssl \
+ --with-charset=latin1 --with-collation=latin1_general_ci \
+ --with-extra-charsets=complex --enable-thread-safe-client \
+ --with-libwrap
+
+ pushd include || return
+ make || return 1
+ popd
+
+ for dir in libmysql libmysql_r; do
pushd ${dir} || return 1
+ make link_sources
make || return 1
+ make DESTDIR=${startdir}/pkg install
popd
done
+
+ for dir in strings regex mysys dbug extra; do
+ pushd ${dir} || return 1
+ make || return 1
+ popd
+ done
+
cd client
+
sed -i -e 's|\$(top_builddir)/libmysql/libmysqlclient.la|/usr/lib/mysql/libmysqlclient.so|g' Makefile
make link_sources
make || return 1
make DESTDIR=${startdir}/pkg install
+
+ # Removing libmysql stuff
+ rm -rf $pkgdir/usr/lib/
+
}
-md5sums=('6c30a20c9059daf053a301e927eb1667')
+md5sums=('f2d14b5e3b9d50b809c9b9985e4513b7')
More information about the arch-commits
mailing list