diff options
author | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
---|---|---|
committer | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
commit | 0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch) | |
tree | c0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/libmysqlclient/PKGBUILD | |
download | linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2 |
initial import
Diffstat (limited to 'abs/core/libmysqlclient/PKGBUILD')
-rw-r--r-- | abs/core/libmysqlclient/PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/abs/core/libmysqlclient/PKGBUILD b/abs/core/libmysqlclient/PKGBUILD new file mode 100644 index 0000000..b8e84d1 --- /dev/null +++ b/abs/core/libmysqlclient/PKGBUILD @@ -0,0 +1,55 @@ +# $Id: PKGBUILD 2463 2008-06-02 11:37:21Z alexander $ +# Maintainer: judd <jvinet@zeroflux.org> +pkgname=libmysqlclient +pkgver=5.0.60 +pkgrel=1 +pkgdesc="MySQL client libraries" +arch=(i686 x86_64) +depends=('openssl' 'zlib') +makedepends=('gcc' 'readline' 'tcp_wrappers' 'libtool') +options=('!libtool') +license=('GPL') +url=('http://www.mysql.com/') +source=(http://mirror.provenscaling.com/mysql/enterprise/source/5.0/mysql-${pkgver}.tar.gz) + +build() { + # PIC + export CFLAGS="-fPIC ${CFLAGS}" + 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 + + for dir in include strings regex mysys dbug extra; do + pushd ${dir} || return 1 + make || return 1 + popd + done + for dir in libmysql libmysql_r; do + pushd ${dir} || return 1 + make link_sources + make || return 1 + make DESTDIR=${startdir}/pkg install + popd + done + cd include + make DESTDIR=${startdir}/pkg install + + cd ../scripts + make mysql_config + mkdir -p ${startdir}/pkg/usr/bin + install -m755 mysql_config ${startdir}/pkg/usr/bin + + # create library symlinks in /usr/lib + ln -sf mysql/libmysqlclient.so.15 $startdir/pkg/usr/lib/libmysqlclient.so.15 + ln -sf libmysqlclient.so.15 $startdir/pkg/usr/lib/libmysqlclient.so + ln -sf libmysqlclient.so.15 $startdir/pkg/usr/lib/libmysqlclient.so.1 + ln -sf mysql/libmysqlclient_r.so.15 $startdir/pkg/usr/lib/libmysqlclient_r.so.15 + ln -sf libmysqlclient_r.so.15 $startdir/pkg/usr/lib/libmysqlclient_r.so + ln -sf libmysqlclient_r.so.15 $startdir/pkg/usr/lib/libmysqlclient_r.so.1 +} +md5sums=('2709a53f3da6f1cd868825ed2ea80431') |