libraries/cpprestsdk: Updated for version 20201210_eb6801f.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2020-12-15 17:15:32 +01:00 committed by Robby Workman
parent cb94f37c09
commit 3b74d61f98
3 changed files with 8 additions and 21 deletions

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cpprestsdk
VERSION=${VERSION:-2.9.1}
VERSION=${VERSION:-20201210_eb6801f}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -60,9 +60,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
patch -p1 < $CWD/cpprestsdk.patch
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -74,9 +73,10 @@ mkdir -p Release/build
cd Release/build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=format-truncation=" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_BINDIR=/usr/bin \
-DCMAKE_INSTALL_LIBDIR=/usr/lib$LIBDIRSUFFIX \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG

View file

@ -1,8 +1,8 @@
PRGNAM="cpprestsdk"
VERSION="2.9.1"
VERSION="20201210_eb6801f"
HOMEPAGE="https://github.com/Microsoft/cpprestsdk/"
DOWNLOAD="https://github.com/Microsoft/cpprestsdk/archive/v2.9.1/cpprestsdk-2.9.1.tar.gz"
MD5SUM="0c0e86ef413a05773ffad9de663f8889"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/cpprestsdk-20201210_eb6801f.tar.xz"
MD5SUM="dd06c04b302de7e9543e8485034176a9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -1,13 +0,0 @@
diff -ur cpprestsdk-2.9.0.old/Release/src/CMakeLists.txt cpprestsdk-2.9.0/Release/src/CMakeLists.txt
--- cpprestsdk-2.9.0.old/Release/src/CMakeLists.txt 2016-10-18 17:30:28.000000000 -0200
+++ cpprestsdk-2.9.0/Release/src/CMakeLists.txt 2016-12-20 22:36:53.079208022 -0200
@@ -147,7 +147,7 @@
install(
TARGETS cpprest
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}
)
endif()