libraries/mongo-c-driver: Updated for version 1.25.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2023-12-02 10:44:13 +07:00
parent 80da576240
commit 6222c777dd
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 12 additions and 15 deletions

View File

@ -23,7 +23,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mongo-c-driver
VERSION=${VERSION:-1.17.3}
VERSION=${VERSION:-1.25.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -36,9 +36,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# 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
@ -77,29 +74,29 @@ 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 {} \;
# Flag Docs, if needed
DOX=0 ; if [ "${DOCS:-no}" = "yes" ]; then DOX=1 ; fi
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_INSTALL_DIR=/usr/man \
-DENABLE_MAN_PAGES=$DOX \
-DENABLE_HTML_DOCS=$DOX \
-DENABLE_STATIC=OFF \
-DENABLE_TESTS=OFF \
-DBUILD_VERSION=$VERSION \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
make install/strip DESTDIR=$PKG
cd ..
find $PKG -print0 | xargs -0 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 CONTRIBUTING.md NEWS README.rst \
THIRD_PARTY_NOTICES VERSION_CURRENT \
THIRD_PARTY_NOTICES \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -1,8 +1,8 @@
PRGNAM="mongo-c-driver"
VERSION="1.17.3"
VERSION="1.25.1"
HOMEPAGE="http://mongoc.org"
DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.17.3/mongo-c-driver-1.17.3.tar.gz"
MD5SUM="9babfd9883e7c02bd0d7624ea286ee82"
DOWNLOAD="https://github.com/mongodb/mongo-c-driver/archive/1.25.1/mongo-c-driver-1.25.1.tar.gz"
MD5SUM="d896ed508a72e4de9c2160fc410bc163"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""