# Maintainer: Simon Rupf pkgname=cpprestsdk pkgver=2.10.18 pkgrel=2 pkgdesc="C++ Microsoft REST SDK" url="https://github.com/microsoft/cpprestsdk" # s390x: broken on big endian arch="all !s390x" license="MIT" makedepends=" boost-dev cmake openssl-dev samurai websocket++ " subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/cpprestsdk/archive/refs/tags/$pkgver.tar.gz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWERROR=OFF \ -DBUILD_TESTS="$(want_check && echo ON || echo OFF)" cmake --build build } check() { # httpclient_test needs networking (?) # websocketsclient_test requires fast enough machine or timesout ctest --test-dir build --output-on-failure -E "(httpclient_test|websocketsclient_test)" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 5f0699e7ba509e16d6a3000e6ac448f6dbc134b8e03de9ab174ba749ad7efa76cbfccb623b226d82f5dba35ef6292f0cdf121b5315d524a5a28454038d420fab cpprestsdk-2.10.18.tar.gz "