summaryrefslogtreecommitdiffstats
path: root/libraries/dbus-cpp/dbus-cpp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/dbus-cpp/dbus-cpp.SlackBuild')
-rw-r--r--libraries/dbus-cpp/dbus-cpp.SlackBuild20
1 files changed, 5 insertions, 15 deletions
diff --git a/libraries/dbus-cpp/dbus-cpp.SlackBuild b/libraries/dbus-cpp/dbus-cpp.SlackBuild
index c1ae326c46..97b7fb7220 100644
--- a/libraries/dbus-cpp/dbus-cpp.SlackBuild
+++ b/libraries/dbus-cpp/dbus-cpp.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for dbus-cpp
-# Copyright 2017 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
+# Copyright 2017-2023 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dbus-cpp
-VERSION=${VERSION:-5.0.0}
-SRCVER=${SRCVER:-5.0.0+16.10.20160809}
+VERSION=${VERSION:-5.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +38,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
@@ -71,11 +67,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-# Tarball does not have a parent directory, so we'll create one and cd
-# into it before extracting.
-mkdir -p $PRGNAM-$VERSION
+tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
cd $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}_${SRCVER}.orig.tar.gz
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -90,13 +83,10 @@ mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-copy" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \
- -DCMAKE_BUILD_TYPE=Release \
- -DDBUS_CPP_VERSION_MAJOR=5 \
- -DDBUS_CPP_VERSION_MINOR=0 \
- -DDBUS_CPP_VERSION_PATCH=0 ..
+ -DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..