community/mysql-workbench to 8.0.23-2

This commit is contained in:
Kevin Mihelich 2021-01-21 13:21:06 +00:00
parent 4657e0f88a
commit 7650e064ab

View file

@ -14,11 +14,12 @@ buildarch=12
pkgname=mysql-workbench pkgname=mysql-workbench
pkgver=8.0.23 pkgver=8.0.23
pkgrel=1 pkgrel=2
_mysql_version=${pkgver} _mysql_version=${pkgver}
_connector_version=${pkgver} _connector_version=${pkgver}
_gdal_version=3.2.1 _gdal_version=3.2.1
_boost_version=1.73.0 _boost_version=1.73.0
_antlr4_version=4.9.1
pkgdesc='A cross-platform, visual database design tool developed by MySQL' pkgdesc='A cross-platform, visual database design tool developed by MySQL'
arch=('x86_64') arch=('x86_64')
url='https://www.mysql.com/products/workbench/' url='https://www.mysql.com/products/workbench/'
@ -27,7 +28,7 @@ depends=('cairo' 'antlr4-runtime' 'curl' 'desktop-file-utils' 'freetype2' 'gifli
'gtkmm3' 'hicolor-icon-theme' 'json-c' 'libgl' 'libsecret' 'libssh' 'gtkmm3' 'hicolor-icon-theme' 'json-c' 'libgl' 'libsecret' 'libssh'
'libxml2' 'libzip' 'pcre' 'proj' 'python' 'rapidjson' 'unixodbc' 'libxml2' 'libzip' 'pcre' 'proj' 'python' 'rapidjson' 'unixodbc'
'vsqlite++' 'zstd') 'vsqlite++' 'zstd')
makedepends=('cmake' 'boost' 'mesa' 'swig' 'java-runtime' 'imagemagick' 'antlr4') makedepends=('cmake' 'boost' 'mesa' 'swig' 'java-runtime' 'imagemagick' "antlr4=${_antlr4_version}")
validpgpkeys=('A4A9406876FCBD3C456770C88C718D3B5072E1F5') # MySQL Release Engineering <mysql-build@oss.oracle.com> validpgpkeys=('A4A9406876FCBD3C456770C88C718D3B5072E1F5') # MySQL Release Engineering <mysql-build@oss.oracle.com>
source=("https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-${pkgver}-src.tar.gz"{,.asc} source=("https://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-${pkgver}-src.tar.gz"{,.asc}
"https://cdn.mysql.com/Downloads/MySQL-${_mysql_version%.*}/mysql-${_mysql_version}.tar.gz"{,.asc} "https://cdn.mysql.com/Downloads/MySQL-${_mysql_version%.*}/mysql-${_mysql_version}.tar.gz"{,.asc}
@ -81,7 +82,7 @@ prepare() {
sed -i "/target_link_libraries/s|\\$|-L${srcdir}/install-bundle/usr/lib/ \\$|" backend/wbpublic/CMakeLists.txt sed -i "/target_link_libraries/s|\\$|-L${srcdir}/install-bundle/usr/lib/ \\$|" backend/wbpublic/CMakeLists.txt
# be happy with more recent antlr # be happy with more recent antlr
sed -i '/set(ANTLR_JAR_FILENAME/s/4.7.1/4.8/' CMakeLists.txt sed -i "/set(ANTLR_JAR_FILENAME/s/4.7.1/${_antlr4_version}/" CMakeLists.txt
# remove -Wno-deprecated-copy # remove -Wno-deprecated-copy
sed -i 's|-Wno-deprecated-copy||' CMakeLists.txt sed -i 's|-Wno-deprecated-copy||' CMakeLists.txt
@ -152,7 +153,7 @@ build() {
cmake "${srcdir}/mysql-workbench-community-${pkgver}-src" \ cmake "${srcdir}/mysql-workbench-community-${pkgver}-src" \
-Wno-dev \ -Wno-dev \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -std=c++14 -fsigned-char" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -std=c++17 -fsigned-char" \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DMySQL_CONFIG_PATH="${srcdir}/install-bundle/usr/bin/mysql_config" \ -DMySQL_CONFIG_PATH="${srcdir}/install-bundle/usr/bin/mysql_config" \
-DMySQLCppConn_LIBRARY="${srcdir}/install-bundle/usr/lib/libmysqlcppconn.so" \ -DMySQLCppConn_LIBRARY="${srcdir}/install-bundle/usr/lib/libmysqlcppconn.so" \