updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / pbxtplugin / PKGBUILD
blobe427b2725d5b91bf01a85337c360b57f762ffbc2
1 # Maintainer: Brad Arrington <bradla8@yahoo.com>
3 pkgbase=pbxtplugin
4 pkgname=('pbxtplugin')
5 _realpkgname=mysql
6 pkgver=5.1.54
7 pkgrel=1
8 pkgdesc="PBXT version 2a MySQL Database Engine plugin for version 5.1.x" 
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 url="http://www.primebase.org/"
12 makedepends=('tcp_wrappers' 'zlib' 'perl' 'openssl' 'libtool' 'patch')
13 options=('!libtool')
14 source=("http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/${_realpkgname}-${pkgver}.tar.gz"
15         'mysqld'
16         'my.cnf'
17         'skip-abi-check.patch'
18         'pbxt_compile.patch')
20 md5sums=('2a0f45a2f8b5a043b95ce7575796a30b'
21          '2234207625baa29b2ff7d7b4f088abce'
22          '0337741fa9afbe57939993636081a827'
23          'a97e574945e19de3908575b956241026'
24          '10cc8caf3d2b7024845c5fa7a88834c1')
26 build() {
27   cd "${srcdir}"
28   bzr branch lp:pbxt/2.0 2.0
29   
30   cd "${srcdir}/${_realpkgname}-${pkgver}"
31   patch -Np0 -i "${srcdir}/skip-abi-check.patch"
32   # CFLAGS/CXXFLAGS as suggested upstream
33   CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
34   CXXFLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \
35   ./configure --prefix=/usr \
36     --libexecdir=/usr/sbin \
37     --localstatedir=/var \
38     --sysconfdir=/etc/mysql \
39     --without-docs \
40     --without-readline \
41     --with-ssl \
42     --with-libwrap \
43     --with-charset=utf8 \
44     --with-collation=utf8_general_ci \
45     --with-extra-charsets=complex \
46     --with-embedded-server \
47     --with-unix-socket-path=/var/run/mysqld/mysqld.sock \
48     --enable-local-infile \
49     --with-plugins=partition,ftexample,archive,blackhole,federated,heap,innobase,innodb_plugin,ndbcluster
50   make 
52   cd ..
53   patch -p0 < "$srcdir/pbxt_compile.patch"
54   cd 2.0
55   ./configure --with-mysql=../mysql-5.1.54  
56   make 
57   make DESTDIR="${pkgdir}" install || return 1