summaryrefslogtreecommitdiff
path: root/libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild')
-rw-r--r--libraries/mysql-connector-c++/mysql-connector-c++.SlackBuild18
1 files changed, 6 insertions, 12 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