mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
|
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
|
# Contributor: Denis Martinez <deuns.martinez AT gmail.com>
|
|
# Contributor: Bogdan Burlacu <bogdan.burlacu AT pm.me>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - 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
|
|
}
|