summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0976596ac4fff667520858b9ed649be56244ffd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# shellcheck shell=bash disable=SC2034,SC2154
_pkgname=ipp
pkgname=python-$_pkgname
pkgver=2021.8.0
pkgrel=3
pkgdesc="IntelĀ® Integrated Performance Primitives"
arch=(x86_64)
url=https://www.intel.com/content/www/us/en/developer/tools/oneapi/ipp.html
depends=(python)
makedepends=(python-installer)
license=(custom)
_py=py2.py3
source=("https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/$_pkgname/${_pkgname//-/_}-$pkgver-$_py-none-manylinux1_${arch[0]}.whl")
sha256sums=('9cfa52dde8859a1d0858e47cb325e545639ff008a32bf76d79adbfe7916bb05a')

package() {
	python -m installer --destdir="$pkgdir" ./*.whl
	# avoid ldconfig warning
	cd "$pkgdir/usr/lib" || exit 1
	find . -name '*.so.*.*' -exec sh -c 'x=${1#./}; so1=${x%.*}; so2=${so1%.*}; rm $so1 && ln -s $x $so1; rm $so2 && ln -s $x $so2' sh {} \;
}