extra/intel-tbb to 2019.3-1

This commit is contained in:
Kevin Mihelich 2018-12-30 14:19:24 +00:00
parent 1c1ba4a0dc
commit 393abfd82d

View file

@ -1,4 +1,4 @@
# Maintainer:
# 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>
@ -8,26 +8,26 @@
# - add specfic CXXFLAGS for ARM
pkgname=intel-tbb
pkgver=2019
_file=${_tag}_src.tgz
pkgver=2019.3
_tagname=${pkgver/./_U}
pkgrel=1
pkgdesc='High level abstract threading library'
arch=(x86_64)
url='http://www.threadingbuildingblocks.org/'
license=(GPL)
depends=(gcc-libs)
source=($pkgname-$pkgver.tar.gz::https://github.com/01org/tbb/archive/$pkgver.tar.gz)
sha256sums=('4d149895826cea785cd3b9a14f4aa743b6ef0df520eca7ee27d438fdc3d73399')
source=($pkgname-$pkgver.tar.gz::https://github.com/01org/tbb/archive/$_tagname.tar.gz)
sha256sums=('b2244147bc8159cdd8f06a38afeb42f3237d3fc822555499d7ccfbd4b86f8ece')
build() {
cd tbb-$pkgver
cd tbb-$_tagname
[[ $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 tbb-$_tagname
install -d "$pkgdir"/usr/lib
install -m755 build/linux_*/*.so* "$pkgdir"/usr/lib
install -d "$pkgdir"/usr/include