[arch-commits] Commit in intel-mkl/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Apr 23 08:19:36 UTC 2020


    Date: Thursday, April 23, 2020 @ 08:19:35
  Author: svenstaro
Revision: 617787

upgpkg: intel-mkl 2020.1.217-3: Split out static libs (FS#66326)

Modified:
  intel-mkl/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-23 08:09:26 UTC (rev 617786)
+++ PKGBUILD	2020-04-23 08:19:35 UTC (rev 617787)
@@ -2,11 +2,12 @@
 # Redistribution information:
 # https://software.intel.com/en-us/mkl
 # https://software.intel.com/en-us/articles/intel-math-kernel-library-license-faq
-pkgname=intel-mkl
+pkgbase=intel-mkl
+pkgname=(intel-mkl intel-mkl-static)
 pkgver=2020.1.217
 _pkgver=${pkgver/%./-/}
 _weirdnum=16533
-pkgrel=2
+pkgrel=3
 pkgdesc="Intel Math Kernel Library"
 arch=(x86_64)
 url="https://software.intel.com/en-us/mkl"
@@ -26,7 +27,7 @@
   done
 }
 
-package() {
+package_intel-mkl() {
   cd l_mkl_$pkgver/rpm
 
   # We'll ship the terrible mklvars.sh file because some users surely expect it.
@@ -45,8 +46,8 @@
   # Sadly Intel seems to expect a certain structure for MKL
   # See https://software.intel.com/en-us/mkl-linux-developer-guide-high-level-directory-structure
   # We'll try to follow that as per upstream suggestion.
-  cp opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/lib/intel64_lin/*.{a,so} "${pkgdir}"/opt/intel/mkl/lib/intel64
-  cp opt/intel/compilers_and_libraries_${pkgver}/linux/compiler/lib/intel64_lin/*.{a,so} "${pkgdir}"/opt/intel/mkl/lib/intel64
+  cp opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/lib/intel64_lin/*.so "${pkgdir}"/opt/intel/mkl/lib/intel64
+  cp opt/intel/compilers_and_libraries_${pkgver}/linux/compiler/lib/intel64_lin/*.so "${pkgdir}"/opt/intel/mkl/lib/intel64
   cp -r opt/intel/compilers_and_libraries_${pkgver}/linux/mkl/include "${pkgdir}"/opt/intel/mkl/include
   install -Dm644 opt/intel/compilers_and_libraries_${pkgver}/licensing/mkl/en/license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 
@@ -55,4 +56,14 @@
   install -Dm755 "${srcdir}/intel-mkl.sh" "${pkgdir}/etc/profile.d/intel-mkl.sh"
   install -Dm644 "${srcdir}/intel-mkl.conf" "${pkgdir}/etc/ld.so.conf.d/intel-mkl.conf"
 }
+
+package_intel-mkl-static() {
+  pkgdesc="Intel Math Kernel Library (static libraries)"
+  depends=('intel-mkl')
+
+  cd l_mkl_$pkgver/rpm
+  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
+}
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list