extra/intel-tbb to 2020.0-1

This commit is contained in:
Kevin Mihelich 2019-12-18 22:42:54 +00:00
parent 9173bec803
commit d7b97a5131

View file

@ -9,27 +9,26 @@
# - add specfic CXXFLAGS for ARM # - add specfic CXXFLAGS for ARM
pkgname=intel-tbb pkgname=intel-tbb
pkgver=2019.9 pkgver=2020.0
_tagname=${pkgver/./_U} pkgrel=1
pkgrel=2
pkgdesc='High level abstract threading library' pkgdesc='High level abstract threading library'
arch=(x86_64) arch=(x86_64)
url='https://www.threadingbuildingblocks.org/' url='https://www.threadingbuildingblocks.org/'
license=(GPL) license=(GPL)
depends=(gcc-libs) depends=(gcc-libs)
makedepends=(cmake inetutils) makedepends=(cmake inetutils)
source=($pkgname-$pkgver.tar.gz::https://github.com/01org/tbb/archive/$_tagname.tar.gz) source=($pkgname-$pkgver.tar.gz::https://github.com/intel/tbb/archive/v$pkgver.tar.gz)
sha256sums=('15652f5328cf00c576f065e5cd3eaf3317422fe82afb67a9bcec0dc065bd2abe') sha256sums=('8eed2377ac62e6ac10af5a8303ce861e4525ffe491a061b48e8fe094fc741ce9')
build() { build() {
cd tbb-$_tagname cd tbb-$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=0"
[[ $CARCH == "aarch64" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=1" [[ $CARCH == "aarch64" ]] && CXXFLAGS+=" -DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=1"
make make
} }
package() { package() {
cd tbb-$_tagname cd tbb-$pkgver
install -d "$pkgdir"/usr/lib install -d "$pkgdir"/usr/lib
install -m755 build/linux_*/*.so* "$pkgdir"/usr/lib install -m755 build/linux_*/*.so* "$pkgdir"/usr/lib
install -d "$pkgdir"/usr/include install -d "$pkgdir"/usr/include