public
Last active

Mysql Workbench fixed PKGBUILD.

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
# Maintainer: Christian Hesse <mail@eworm.de>
# Contributor: Alexandre Boily <alexandreboily@gmail.com>
# Contributor: Illarion Kovalchuk <illarion.kovalchuk@gmail.com>
# Contributor: totoloco <totoloco at gmail _dot_com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
 
pkgname=mysql-workbench
pkgver=6.0.6
pkgrel=1
pkgdesc="A cross-platform, visual database design tool developed by MySQL"
arch=('i686' 'x86_64')
url="https://www.mysql.com/products/workbench/"
license=('GPL2')
depends=('python2' 'libzip' 'libmariadbclient' 'lua51' 'gtkmm' 'ctemplate'
'libgnome-keyring' 'libgl' 'python2-paramiko' 'python2-pexpect'
'pcre' 'tinyxml' 'libxml2' 'mysql-python' 'python2-pysqlite' 'cairo'
'python-cairo' 'hicolor-icon-theme' 'desktop-file-utils' 'libiodbc'
'mysql-connector-c++' 'vsqlite++' 'unixodbc')
optdepends=('gnome-keyring: store SSH/MySQL passwords in GNOME password manager')
makedepends=('cmake' 'boost' 'curl' 'mesa' 'expac')
options=('!libtool !distcc !ccache')
install=mysql-workbench.install
source=("http://cdn.mysql.com/Downloads/MySQLGUITools/${pkgname}-community-${pkgver}-src.tar.gz"
'no-check-for-updates.patch'
'arch_linux_profile.xml')
 
build() {
cd "${srcdir}/${pkgname}-community-${pkgver}-src"
# Disable 'Help' -> 'Check for Updates'
patch -Np1 < ${srcdir}/no-check-for-updates.patch && return 0
 
# fix odd boost cstdint related error.
sed -i 's|^\(using[[:space:]]*boost::u*int64_t;$\)|//\1|' "${srcdir}/${pkgname}-community-${pkgver}-src/library/base/base/string_utilities.h"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
 
# fix path to lua include files
# is this a bug by cmake? (/usr/share/cmake-2.8/Modules/FindLua51.cmake)
expac -Q %n lua >/dev/null && sed -i '/^LUA_INCLUDE_DIR/s|/usr/include|/usr/include/lua5.1|' CMakeCache.txt
 
# fix detection of Python
sed -i 's|python3.3m|python2.7|' CMakeCache.txt
 
make
}
 
package() {
cd "${srcdir}/${pkgname}-community-${pkgver}-src"
 
make DESTDIR="${pkgdir}" install
 
install -D -m 0644 ${srcdir}/arch_linux_profile.xml ${pkgdir}/usr/share/mysql-workbench/mysql.profiles/Arch_Linux_\(MariaDB_5.5_Package\).xml
}
 
sha256sums=('729b55a68b9c104506b000bc77200c17170e57cfbcba76824350cd54627679f6'
'996482e15d88af097f5e7a578885338cad5b8724f8abb4341749d5538801f5c0'
'1aa3cc7bf83470e81eca766114a597fa57542316818732011c8ea67e52197c7e')

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.