# Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=xsimd pkgver=11.1.0 pkgrel=0 pkgdesc="C++ wrappers for SIMD intrinsics and parallelized, optimized mathematical functions (SSE, AVX, NEON, AVX512)" url="https://github.com/xtensor-stack/xsimd" # only supports simd on these arch="aarch64 x86 x86_64" license="BSD-3-Clause" makedepends="cmake gtest-dev linux-headers samurai" checkdepends="doctest-dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/xtensor-stack/xsimd/archive/refs/tags/$pkgver.tar.gz failed-tests.patch " build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DBUILD_TESTS="$(want_check && echo ON || echo OFF)" \ $CMAKE_CROSSOPTS cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 3a6141dfa4d95a977f4222880dfd06197613d153a78a84653022423279eec037ea9def08ae225aba7231c0b2c434ab7c907c965f8367fb0db9b96113980b51f3 xsimd-11.1.0.tar.gz 41dbdd9ac9b1f7d3061bc9686416fd42406112509f29e301cf0b62e715c20df38a4ed82e74804869b7ef2332fff7a88bb68e94240a4283b2b530a2d2239a632d failed-tests.patch "