[arch-commits] Commit in intel-mkl/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Tue Apr 28 19:24:22 UTC 2020
Date: Tuesday, April 28, 2020 @ 19:24:18
Author: svenstaro
Revision: 622084
upgpkg: intel-mkl 2020.1.217-4: Broken symlink to mkl_link_tool and add pkg-config files
Modified:
intel-mkl/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-28 19:22:11 UTC (rev 622083)
+++ PKGBUILD 2020-04-28 19:24:18 UTC (rev 622084)
@@ -7,9 +7,10 @@
pkgver=2020.1.217
_pkgver=${pkgver/%./-/}
_weirdnum=16533
-pkgrel=3
+pkgrel=4
pkgdesc="Intel Math Kernel Library"
arch=(x86_64)
+depends=('gcc-libs')
url="https://software.intel.com/en-us/mkl"
license=("custom:ISSL")
source=("http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/$_weirdnum/l_mkl_$pkgver.tgz"
@@ -25,6 +26,12 @@
for rpm in *.rpm; do
bsdtar -xf $rpm
done
+
+ sed -i \
+ -e 's|^prefix=.*|prefix=/opt/intel/mkl|' \
+ -e 's|${MKLROOT}|/opt/intel/mkl|' \
+ -e 's|^omplibdir=.*|omplibdir=/opt/intel/mkl/lib/intel64|' \
+ opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/bin/pkgconfig/*.pc
}
package_intel-mkl() {
@@ -38,8 +45,11 @@
mkdir -p "${pkgdir}/usr/bin"
install -Dm755 opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/bin/mkl_link_tool "${pkgdir}"/opt/intel/mkl/bin/mkl_link_tool
- ln -s /opt/intel/mkl/tools/mkl_link_tool "${pkgdir}"/usr/bin/mkl_link_tool
+ ln -s /opt/intel/mkl/bin/mkl_link_tool "${pkgdir}"/usr/bin/mkl_link_tool
+ mkdir -p "${pkgdir}/usr/lib/pkgconfig"
+ cp opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/bin/pkgconfig/mkl-dynamic* "${pkgdir}/usr/lib/pkgconfig/"
+
mkdir -p "${pkgdir}"/opt/intel/mkl/lib/intel64
ln -s intel64 "${pkgdir}"/opt/intel/mkl/lib/intel64_lin
@@ -62,8 +72,14 @@
depends=('intel-mkl')
cd l_mkl_$pkgver/rpm
+
+ mkdir -p "${pkgdir}/usr/lib/pkgconfig"
+ cp opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/bin/pkgconfig/mkl-static* "${pkgdir}/usr/lib/pkgconfig/"
+
mkdir -p "${pkgdir}"/opt/intel/mkl/lib/intel64
cp opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/lib/intel64_lin/*.a "${pkgdir}"/opt/intel/mkl/lib/intel64
cp opt/intel/compilers_and_libraries_${pkgver}/linux/compiler/lib/intel64_lin/*.a "${pkgdir}"/opt/intel/mkl/lib/intel64
+
+ chmod 644 "${pkgdir}"/opt/intel/mkl/lib/intel64/*.a
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list