summaryrefslogtreecommitdiffstats
path: root/libraries/mongo-c-driver/mongo-c-driver.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/mongo-c-driver/mongo-c-driver.SlackBuild')
-rw-r--r--libraries/mongo-c-driver/mongo-c-driver.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/libraries/mongo-c-driver/mongo-c-driver.SlackBuild b/libraries/mongo-c-driver/mongo-c-driver.SlackBuild
index 4856a28bfb..86e8bc3bcf 100644
--- a/libraries/mongo-c-driver/mongo-c-driver.SlackBuild
+++ b/libraries/mongo-c-driver/mongo-c-driver.SlackBuild
@@ -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