summaryrefslogtreecommitdiff
path: root/libraries/mysql-connector-c++
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-18 18:16:12 +0700
committerRobby Workman <rworkman@slackbuilds.org>2021-04-18 14:30:18 -0500
commit23e6c541f523ccdb23e479bf8472a259bb94b0bb (patch)
treed435395fc62537d96dc53a1d167250cc3240bb88 /libraries/mysql-connector-c++
parent91b987fb0b597eb48984b8c7112536818797da77 (diff)
downloadslackbuilds-23e6c541f523ccdb23e479bf8472a259bb94b0bb.tar.gz
libraries/mysql-connector-c++: Updated for version 8.0.23.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/mysql-connector-c++')
-rw-r--r--libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild18
-rw-r--r--libraries/mysql-connector-c++/mysql-connector-c++.info6
2 files changed, 9 insertions, 15 deletions
diff --git a/libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild b/libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild
index cc44e33e61..d76bb34ce1 100644
--- a/libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild
+++ b/libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for mysql-connector-c++
-# Copyright 2013-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2013-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mysql-connector-c++
-VERSION=${VERSION:-1.1.9}
+VERSION=${VERSION:-8.0.23}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION-src
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
+cd $PRGNAM-$VERSION-src
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,19 +69,13 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Compatibility patch for MariaDB
-patch -p1 < $CWD/mariadb_api.patch
mkdir -p build
cd build
cmake \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \
- -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \
- -DMYSQL_LIB=/usr/lib${LIBDIRSUFFIX}/libmysqlclient.so \
-DCMAKE_BUILD_TYPE=Release ..
- make mysqlcppconn
- cp $TMP/$PRGNAM-$VERSION/build/cppconn/config.h $TMP/$PRGNAM-$VERSION/cppconn/config.h
make
make install DESTDIR=$PKG
cd ..
@@ -90,7 +84,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/{COPYING,README,Licenses*.txt} $PKG/usr/doc/$PRGNAM-$VERSION
+cp *.txt *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/mysql-connector-c++/mysql-connector-c++.info b/libraries/mysql-connector-c++/mysql-connector-c++.info
index ce2593b3b0..99bca18860 100644
--- a/libraries/mysql-connector-c++/mysql-connector-c++.info
+++ b/libraries/mysql-connector-c++/mysql-connector-c++.info
@@ -1,8 +1,8 @@
PRGNAM="mysql-connector-c++"
-VERSION="1.1.9"
+VERSION="8.0.23"
HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/"
-DOWNLOAD="https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-1.1.9.tar.gz"
-MD5SUM="f262bef7e70178f95ceb72a71f0915f7"
+DOWNLOAD="https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-8.0.23-src.tar.gz"
+MD5SUM="99e01ed5f3cef6a498a66613b585daec"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""