# Maintainer: Felix Yan # Contributor: Stéphane Gaudreault # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Denis Martinez # Contributor: Bogdan Burlacu # ALARM: Kevin Mihelich # - explicitly link v5/v6 with libatomic pkgname=tbb pkgver=2021.5.0 pkgrel=1 pkgdesc='High level abstract threading library' arch=('x86_64') url='https://www.threadingbuildingblocks.org/' license=('Apache') depends=('gcc-libs' 'hwloc') makedepends=('cmake' 'inetutils' 'ninja' 'python' 'swig') conflicts=('intel-tbb') provides=("intel-tbb=$pkgver") replaces=('intel-tbb') source=(https://github.com/oneapi-src/oneTBB/archive/v$pkgver/$pkgname-$pkgver.tar.gz) sha512sums=('0e7b71022e397a6d7abb0cea106847935ae79a1e12a6976f8d038668c6eca8775ed971202c5bd518f7e517092b67af805cc5feb04b5c3a40e9fbf972cc703a46') build() { cd oneTBB-$pkgver [[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(tbb PUBLIC atomic)" >> src/tbb/CMakeLists.txt cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DTBB4PY_BUILD=ON . ninja all python_build } check() { cd oneTBB-$pkgver ninja test } package() { cd oneTBB-$pkgver DESTDIR="$pkgdir" ninja install }