1 # Contributer: giacomogiorgianni@gmail.com
2 pkgname=mysql-workbench-gpl
5 pkgdesc="A cross-platform, visual database design tool developed by MySQL --> ubuntu"
7 url="http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/%5Bpage=5%5D"
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
14 md5sums=('2a3d981715af487ef268743f35c21a1c')
15 elif [ "${CARCH}" = 'i686' ]; then
17 md5sums=('6ef662146d662133d036dd06f65b30a3')
20 source=(http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQLGUITools/${pkgname}-${pkgver}-1ubu1004-${ARCH}.deb)
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