From bf8cac8e5def1376afa53fa1eb56c06f9f65217e Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Mon, 7 Feb 2022 15:35:44 +0100 Subject: [PATCH] libraries/libcifpp: Updated for version 3.0.0. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- libraries/libcifpp/libcifpp.SlackBuild | 27 +++++++++++++------------- libraries/libcifpp/libcifpp.info | 6 +++--- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/libraries/libcifpp/libcifpp.SlackBuild b/libraries/libcifpp/libcifpp.SlackBuild index 69810923ac..a6d67c082e 100644 --- a/libraries/libcifpp/libcifpp.SlackBuild +++ b/libraries/libcifpp/libcifpp.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libcifpp -VERSION=${VERSION:-1.0.0} +VERSION=${VERSION:-3.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,19 +79,18 @@ 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 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux - -make -make install libdir=$PKG/usr/lib${LIBDIRSUFFIX} +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DMAN_INSTALL_DIR=/usr/man \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install 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 diff --git a/libraries/libcifpp/libcifpp.info b/libraries/libcifpp/libcifpp.info index 4513bfb35c..4a302a6eef 100644 --- a/libraries/libcifpp/libcifpp.info +++ b/libraries/libcifpp/libcifpp.info @@ -1,8 +1,8 @@ PRGNAM="libcifpp" -VERSION="1.0.0" +VERSION="3.0.0" HOMEPAGE="https://github.com/PDB-REDO/libcifpp" -DOWNLOAD="https://github.com/PDB-REDO/libcifpp/archive/v1.0.0/libcifpp-1.0.0.tar.gz" -MD5SUM="434cc0733317feec846c196f008bc719" +DOWNLOAD="https://github.com/PDB-REDO/libcifpp/archive/v3.0.0/libcifpp-3.0.0.tar.gz" +MD5SUM="82ca063ecb81b747527e8b76f1ba45ec" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES=""