extra/intel-tbb to 2020.2-1

This commit is contained in:
Kevin Mihelich 2020-03-30 22:06:23 +00:00
parent e656374566
commit ae8a092f21

View file

@ -9,7 +9,7 @@
# - add specfic CXXFLAGS for ARM
pkgname=intel-tbb
pkgver=2020.1
pkgver=2020.2
pkgrel=1
pkgdesc='High level abstract threading library'
arch=(x86_64)
@ -18,17 +18,17 @@ license=(GPL)
depends=(gcc-libs)
makedepends=(cmake inetutils)
source=($pkgname-$pkgver.tar.gz::https://github.com/intel/tbb/archive/v$pkgver.tar.gz)
sha256sums=('48d51c63b16787af54e1ee4aaf30042087f20564b4eecf9a032d5568bc2f0bf8')
sha256sums=('4804320e1e6cbe3a5421997b52199e3c1a3829b2ecb6489641da4b8e32faf500')
build() {
cd tbb-$pkgver
cd oneTBB-$pkgver
[[ $CARCH != "aarch64" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0"
[[ $CARCH == "aarch64" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=1"
make
}
package() {
cd tbb-$pkgver
cd oneTBB-$pkgver
install -d "$pkgdir"/usr/lib
install -m755 build/linux_*/*.so* "$pkgdir"/usr/lib
install -d "$pkgdir"/usr/include