diff options
Diffstat (limited to 'libraries/mysql++')
-rw-r--r-- | libraries/mysql++/README | 11 | ||||
-rw-r--r-- | libraries/mysql++/mysql++.SlackBuild | 32 | ||||
-rw-r--r-- | libraries/mysql++/mysql++.info | 8 |
3 files changed, 32 insertions, 19 deletions
diff --git a/libraries/mysql++/README b/libraries/mysql++/README index 5f9f1df856..74baf3af75 100644 --- a/libraries/mysql++/README +++ b/libraries/mysql++/README @@ -1,7 +1,8 @@ -MySQL++ is a C++ wrapper for MySQL's C API. It is built around the same -principles as the Standard C++ Library, to make dealing with the database -as easy as dealing with STL containers. In addition, MySQL++ provides -facilities that let you avoid the most repetitive sorts of SQL within your -own code, providing native C++ interfaces for these common tasks. +MySQL++ is a C++ wrapper for MySQL's C API. It is built around the +same principles as the Standard C++ Library, to make dealing with the +database as easy as dealing with STL containers. In addition, MySQL++ +provides facilities that let you avoid the most repetitive sorts of +SQL within your own code, providing native C++ interfaces for these +common tasks. MySQL++ requires MySQL. diff --git a/libraries/mysql++/mysql++.SlackBuild b/libraries/mysql++/mysql++.SlackBuild index 17e6ea1fbc..bcef7d8cab 100644 --- a/libraries/mysql++/mysql++.SlackBuild +++ b/libraries/mysql++/mysql++.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for mysql++ @@ -23,26 +23,36 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mysql++ -VERSION=${VERSION:-3.1.0} -BUILD=${BUILD:-1} +VERSION=${VERSION:-3.3.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -92,13 +102,15 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING.txt CREDITS.txt ChangeLog HACKERS.txt INSTALL.txt LICENSE.txt \ - README-*.txt Wishlist $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING.txt CREDITS.txt INSTALL.txt LICENSE.txt \ + README-*.txt $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/{html,pdf} $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/mysql++/mysql++.info b/libraries/mysql++/mysql++.info index 3a0094b7e3..c7c2cddae9 100644 --- a/libraries/mysql++/mysql++.info +++ b/libraries/mysql++/mysql++.info @@ -1,8 +1,8 @@ PRGNAM="mysql++" -VERSION="3.1.0" -HOMEPAGE="http://tangentsoft.net/mysql++/" -DOWNLOAD="https://tangentsoft.com/mysqlpp/releases/mysql%2b%2b-3.1.0.tar.gz" -MD5SUM="d92769cc579b87a60e58a77099cc4f0e" +VERSION="3.3.0" +HOMEPAGE="https://tangentsoft.net/mysql++/" +DOWNLOAD="https://tangentsoft.com/mysqlpp/releases/mysql%2b%2b-3.3.0.tar.gz" +MD5SUM="39932f1efb6fec00366cd7c7c4bb0914" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |