This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

mysql-workbench PKGBUILD

By: Marcel- on May 8th, 2014  |  syntax: Bash  |  size: 3.15 KB  |  views: 141  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Christian Hesse <mail@eworm.de>
  2. # Contributor: Alexandre Boily <alexandreboily@gmail.com>
  3. # Contributor: Illarion Kovalchuk <illarion.kovalchuk@gmail.com>
  4. # Contributor: totoloco <totoloco at gmail _dot_com>
  5. # Contributor: Ionut Biru <ibiru@archlinux.org>
  6.  
  7. pkgname=mysql-workbench
  8. pkgver=6.1.4
  9. pkgrel=5
  10. pkgdesc="A cross-platform, visual database design tool developed by MySQL"
  11. arch=('i686' 'x86_64')
  12. url="https://www.mysql.com/products/workbench/"
  13. license=('GPL2')
  14. depends=('python2' 'libzip' 'libmariadbclient' 'lua51' 'gtkmm' 'ctemplate'
  15.          'libgnome-keyring' 'libgl' 'python2-paramiko' 'python2-pexpect'
  16.          'pcre' 'tinyxml' 'libxml2' 'mysql-python' 'python2-pysqlite' 'cairo'
  17.          'python-cairo' 'hicolor-icon-theme' 'desktop-file-utils' 'libiodbc'
  18.          'mysql-connector-c++' 'vsqlite++' 'unixodbc' 'freetype2' 'libantlr3c')
  19. optdepends=('gnome-keyring: store SSH/MySQL passwords in GNOME password manager'
  20.         'python2-pyodbc: database migration')
  21. makedepends=('cmake' 'boost' 'curl' 'mesa' 'imagemagick' 'swig')
  22. options=('!distcc !ccache')
  23. install=mysql-workbench.install
  24. source=("http://cdn.mysql.com/Downloads/MySQLGUITools/${pkgname}-community-${pkgver}-src.tar.gz"{,.asc}
  25.         'no-check-for-updates.patch'
  26.         'mysql-workbench-admin_ssh.patch'
  27.         'ctemplate.patch'
  28.         'arch_linux_profile.xml')
  29.  
  30. prepare() {
  31.         cd "${srcdir}/${pkgname}-community-${pkgver}-src/"
  32.  
  33.         # Disable 'Help' -> 'Check for Updates'
  34.         patch -Np1 < "${srcdir}"/no-check-for-updates.patch
  35.  
  36.         # fix empty management tab
  37.         # http://bugs.mysql.com/bug.php?id=72194
  38.         patch -Np1 < "${srcdir}"/mysql-workbench-admin_ssh.patch
  39.  
  40.         # fix deprecated calls to tpl->ReloadIfChanged
  41.         patch -Np1 < "${srcdir}"/ctemplate.patch
  42. }
  43.  
  44. build() {
  45.         cd "${srcdir}/${pkgname}-community-${pkgver}-src/"
  46.  
  47.         cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
  48.  
  49.         # fix path to lua include files
  50.         # is this a bug by cmake? (/usr/share/cmake-2.8/Modules/FindLua51.cmake)
  51.         sed -i '/^LUA_INCLUDE_DIR:PATH=/c LUA_INCLUDE_DIR:PATH=/usr/include/lua5.1' CMakeCache.txt
  52.  
  53.         # fix detection of Python
  54.         sed -i 's|python3.3m|python2.7|' CMakeCache.txt
  55.  
  56.         make
  57. }
  58.  
  59. package() {
  60.         cd "${srcdir}/${pkgname}-community-${pkgver}-src"
  61.  
  62.         make DESTDIR="${pkgdir}" install
  63.  
  64.         # generate icons
  65.         for SIZE in 16 24 32 48 64 96 128 160 192 256 384 512; do
  66.                 if [ ! -s images/icons/MySQLWorkbench-${SIZE}.png ]; then
  67.                         convert -scale ${SIZE} \
  68.                                 images/icons/MySQLWorkbench-512.png \
  69.                                 images/icons/MySQLWorkbench-${SIZE}.png
  70.                 fi
  71.                 install -D -m0644 images/icons/MySQLWorkbench-${SIZE}.png \
  72.                         "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/mysql-workbench.png"
  73.         done
  74.  
  75.         install -D -m 0644 "${srcdir}"/arch_linux_profile.xml "${pkgdir}"/usr/share/mysql-workbench/mysql.profiles/Arch_Linux_\(MariaDB_5.5_Package\).xml
  76. }
  77.  
  78. sha256sums=('2e9b73d8a800341916fbc2d9d347c856408ffef4fe71bcc7786ad88d08302a2b'
  79.             'SKIP'
  80.             '996482e15d88af097f5e7a578885338cad5b8724f8abb4341749d5538801f5c0'
  81.             '0c45db0d9c8a0f0bb07d096b3ed3b249b7e8ed1d02d07a9809f48c7c3402a09c'
  82.             'cd54895c38a618b8b3d6bbc72fd95a7df930914d9e641c59898c88aa60fb3d0f'
  83.             '1aa3cc7bf83470e81eca766114a597fa57542316818732011c8ea67e52197c7e')
clone this paste RAW Paste Data