updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mysql-workbench-gpl / PKGBUILD
blobe78ee67118d9418ef93f0ada6a5689abac2011ea
1 # Contributer: giacomogiorgianni@gmail.com
2 pkgname=mysql-workbench-gpl
3 pkgver=5.2.37
4 pkgrel=5
5 pkgdesc="A cross-platform, visual database design tool developed by MySQL --> ubuntu"
6 arch=('i686' 'x86_64')
7 url="http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/%5Bpage=5%5D"
8 license=('GPL')
9 depends=('libzip' 'lua' 'gtkmm' 'libgl' 'libsigc++' 'python-paramiko' 'python-pexpect' 'libgnome-keyring')
10 makedepends=('boost' 'curl' 'mesa' 'python-sphinx' 'ctemplate')
12 if [ "${CARCH}" = 'x86_64' ]; then
13     ARCH='amd64'
14     md5sums=('2a3d981715af487ef268743f35c21a1c')
15 elif [ "${CARCH}" = 'i686' ]; then
16     ARCH='i386' 
17     md5sums=('6ef662146d662133d036dd06f65b30a3')
20 source=(http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/${pkgname}-${pkgver}-1ubu1004-${ARCH}.deb)
21 build() {
22         cd ${startdir}/src
23         ar -x ${startdir}/src/${pkgname}-${pkgver}-1ubu1004-${ARCH}.deb
24         tar -zxf ${startdir}/src/data.tar.gz
25         cp -r ${startdir}/src/usr/ ${startdir}/pkg/
26         sudo rm /usr/lib/libmysqlclient_r.so.16
27         sudo rm /usr/lib/libpython2.6.so.1.0
28         sudo rm /usr/lib/liblua5.1.so.0
29         sudo rm /usr/lib/libzip.so.1
30         sudo ln -s /usr/lib/liblua.so.5.1 /usr/lib/liblua5.1.so.0
31         sudo ln -s /usr/lib/libpython2.7.so.1.0 /usr/lib/libpython2.6.so.1.0
32         sudo ln -s /usr/lib/libzip.so.2 /usr/lib/libzip.so.1
33         sudo ln -s /usr/lib/libmysqlclient_r.so.18 /usr/lib/libmysqlclient_r.so.16