mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
35 lines
1.1 KiB
Bash
35 lines
1.1 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>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# Romain Reignier <rom.reignier AT gmail.com>
|
|
# - add specfic CXXFLAGS for ARM
|
|
|
|
pkgname=intel-tbb
|
|
pkgver=2019.5
|
|
_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/$_tagname.tar.gz)
|
|
sha256sums=('2ea82d74dec50e18075b4982b8d360f8bd2bf2950f38e2db483aef82e0047444')
|
|
|
|
build() {
|
|
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-$_tagname
|
|
install -d "$pkgdir"/usr/lib
|
|
install -m755 build/linux_*/*.so* "$pkgdir"/usr/lib
|
|
install -d "$pkgdir"/usr/include
|
|
cp -a include/tbb "$pkgdir"/usr/include
|
|
}
|