community/mysql-workbench to 8.0.12-5

This commit is contained in:
Kevin Mihelich 2018-10-17 12:27:06 +00:00
parent ede9df113b
commit 2e81abfadd

View file

@ -1,4 +1,3 @@
# $Id$
# Maintainer: Christian Hesse <mail@eworm.de>
# Contributor: Alexandre Boily <alexandreboily@gmail.com>
# Contributor: Illarion Kovalchuk <illarion.kovalchuk@gmail.com>
@ -14,10 +13,10 @@ buildarch=28
pkgname=mysql-workbench
pkgver=8.0.12
pkgrel=4
pkgrel=5
_mysql_version=8.0.12
_connector_version=8.0.12
_gdal_version=2.3.1
_gdal_version=2.3.2
_boost_version=1.67.0
pkgdesc='A cross-platform, visual database design tool developed by MySQL'
arch=('x86_64')
@ -27,7 +26,7 @@ depends=('cairo' 'ctemplate' 'desktop-file-utils' 'freetype2' 'gtkmm3'
'hicolor-icon-theme' 'libgl' 'libsecret' 'libiodbc' 'libxml2'
'libzip' 'mysql-python' 'pcre' 'python2' 'python2-cairo' 'libssh'
'python2-pexpect' 'tinyxml' 'unixodbc' 'vsqlite++' 'proj' 'json-c'
'antlr4-runtime')
'antlr4-runtime' 'giflib' 'zstd' 'curl')
optdepends=('python2-pyodbc: database migration')
makedepends=('cmake' 'boost' 'mesa' 'swig' 'java-runtime' 'imagemagick' 'antlr4')
validpgpkeys=('A4A9406876FCBD3C456770C88C718D3B5072E1F5') # MySQL Release Engineering <mysql-build@oss.oracle.com>
@ -47,7 +46,7 @@ sha256sums=('0241586c95026a7d4d1b552ba2e33d8e66f6826e8f7e1a692b78c405f80cd334'
'SKIP'
'47d9f152988fe205350a6d31d032692a6777f838a886c3b3dc7af3b0652fdd50'
'SKIP'
'9c4625c45a3ee7e49a604ef221778983dd9fd8104922a87f20b99d9bedb7725a'
'3f6d78fe8807d1d6afb7bed27394f19467840a82bc36d65e66316fa0aa9d32a4'
'2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba'
'cdf687f23bc6e8d52dbee9fa02b23d755e80f88476f0fc2e7c4c71cdfed3792f'
'2d0f6dcf38f22e49ef7ab9de0230484f1ffac41b7ac40feaf5ef4538ae2f7a18'
@ -74,7 +73,7 @@ prepare() {
# GCC 7.x complains about unsupported flag
sed -i 's|-Wno-deprecated-register||' ext/scintilla/gtk/CMakeLists.txt
# disable stringop-truncation for GCC 8.x
# disable stringop-truncation for GCC 8.x
sed -i '/^set/s|-Wall|-Wall -Wno-stringop-truncation|' CMakeLists.txt
# make sure to link against bundled libraries
@ -91,7 +90,7 @@ build() {
# Build mysql
mkdir "${srcdir}/mysql-${_mysql_version}-build"
cd "${srcdir}/mysql-${_mysql_version}-build"
msg "Configure mysql"
echo "Configure mysql..."
cmake "${srcdir}/mysql-${_mysql_version}" \
-DWITHOUT_SERVER=ON \
-DBUILD_CONFIG=mysql_release \
@ -99,15 +98,15 @@ build() {
-DSYSCONFDIR=/etc/mysql \
-DMYSQL_DATADIR=/var/lib/mysql \
-DWITH_BOOST="${srcdir}/boost_${_boost_version//./_}"
msg "Build mysql"
echo "Build mysql..."
make
msg "Install mysql"
echo "Install mysql..."
make DESTDIR="${srcdir}/install-bundle/" install
# Build mysql-connector-c++
mkdir "${srcdir}/mysql-connector-c++-${_connector_version}-src-build"
cd "${srcdir}/mysql-connector-c++-${_connector_version}-src-build"
msg "Configure mysql-connector-c++"
echo "Configure mysql-connector-c++..."
cmake "${srcdir}/mysql-connector-c++-${_connector_version}-src" \
-Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
@ -116,14 +115,14 @@ build() {
-DMYSQL_DIR="${srcdir}/install-bundle/" \
-DMYSQL_CONFIG_EXECUTABLE="${srcdir}/install-bundle/usr/bin/mysql_config" \
-DWITH_JDBC=ON
msg "Build mysql-connector-c++"
echo "Build mysql-connector-c++..."
make
msg "Install mysql-connector-c++"
echo "Install mysql-connector-c++..."
make DESTDIR="${srcdir}/install-bundle/" install
# Build gdal
cd "${srcdir}/gdal-${_gdal_version}"
msg "Configure gdal"
echo "Configure gdal..."
./configure \
--prefix=/usr \
--includedir=/usr/include/gdal \
@ -131,15 +130,15 @@ build() {
--with-mysql="${srcdir}/install-bundle/usr/bin/mysql_config" \
--with-curl \
--without-jasper
msg "Build gdal"
echo "Build gdal..."
make LD_LIBRARY_PATH="${srcdir}/install-bundle/usr/lib/"
msg "Install gdal"
echo "Install gdal..."
make LD_LIBRARY_PATH="${srcdir}/install-bundle/usr/lib/" DESTDIR="${srcdir}/install-bundle/" install
# Build MySQL Workbench itself with bundled libs
mkdir "${srcdir}/mysql-workbench-community-${pkgver}-src-build"
cd "${srcdir}/mysql-workbench-community-${pkgver}-src-build"
msg "Configure mysql-workbench"
echo "Configure mysql-workbench..."
cmake "${srcdir}/mysql-workbench-community-${pkgver}-src" \
-Wno-dev \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
@ -152,7 +151,7 @@ build() {
-DGDAL_LIBRARY="${srcdir}/install-bundle/usr/lib/libgdal.so" \
-DWITH_ANTLR_JAR='/usr/share/java/antlr-complete.jar' \
-DUSE_BUNDLED_MYSQLDUMP=1
msg "Build mysql-workbench"
echo "Build mysql-workbench..."
make
}
@ -175,7 +174,8 @@ package() {
# icons
for SIZE in 16 24 32 48 64 96 128; do
convert -scale ${SIZE} \
# set modify/create for reproducible builds
convert -scale ${SIZE} +set date:create +set date:modify \
"${srcdir}/mysql-workbench-community-${pkgver}-src/images/icons/MySQLWorkbench-128.png" \
"${srcdir}/mysql-workbench.png"
install -D -m0644 "${srcdir}/mysql-workbench.png" "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/mysql-workbench.png"