[arch-commits] Commit in intel-oneapi-openmp/repos/community-x86_64 (2 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Thu Aug 25 17:38:18 UTC 2022


    Date: Thursday, August 25, 2022 @ 17:38:18
  Author: kgizdov
Revision: 1279576

archrelease: copy trunk to community-x86_64

Added:
  intel-oneapi-openmp/repos/community-x86_64/PKGBUILD
    (from rev 1279575, intel-oneapi-openmp/trunk/PKGBUILD)
Deleted:
  intel-oneapi-openmp/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   99 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 58 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-25 17:38:12 UTC (rev 1279575)
+++ PKGBUILD	2022-08-25 17:38:18 UTC (rev 1279576)
@@ -1,41 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-
-pkgname=intel-oneapi-openmp
-pkgver=2022.1.0
-_debpkgrel='3768'
-pkgrel=3
-pkgdesc="Intel oneAPI OpenMP runtime library"
-arch=('x86_64')
-url='https://software.intel.com/content/www/us/en/develop/tools/oneapi.html'
-license=("custom")
-source=("https://apt.repos.intel.com/oneapi/pool/main/${pkgname}-${pkgver}-${pkgver}-${_debpkgrel}_amd64.deb"
-        "https://apt.repos.intel.com/oneapi/pool/main/${pkgname}-common-${pkgver}-${pkgver}-${_debpkgrel}_all.deb")
-b2sums=('4bc045f0d1288f19c76ddc985673661335d9e72be5aee4de0d79241d32db8c7889a097aa33f0a613f774e37b04b0b0d916fd0789efca04e41521f935c3b71e9b'
-        '2540d20e5da610f4cfea0632920c81e270704a316af5831e13c17bc31aab8687ed35708c7342270a76a0b456070323ad054f989e78968f5460166b23fed46cbc')
-depends=('intel-oneapi-common')
-noextract=(
-    "${pkgname}-${pkgver}-${pkgver}-${_debpkgrel}_amd64.deb"
-    "${pkgname}-common-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
-)
-build() {
-    cd "${srcdir}"
-    mkdir openmp common package
-
-    cd "${srcdir}"/openmp
-    ar x "${srcdir}/${pkgname}-${pkgver}-${pkgver}-${_debpkgrel}_amd64.deb"
-    tar xvf data.tar.xz -C "${srcdir}"/package
-
-    cd "${srcdir}"/common
-    ar x "${srcdir}/${pkgname}-common-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
-    tar xvf data.tar.xz -C "${srcdir}"/package
-
-    # drop conda binaries
-    rm -r "${srcdir}"/package/opt/intel/oneapi/conda_channel
-}
-
-package() {
-    mv "${srcdir}"/package/opt "${pkgdir}"
-    install -d "${pkgdir}"/usr/share/licenses/"${pkgname}"
-    ln -s /usr/share/licenses/intel-oneapi "${pkgdir}"/usr/share/licenses/"${pkgname}"/oneapi
-    ln -s /opt/intel/oneapi/compiler/"${pkgver}"/licensing/openmp "${pkgdir}"/usr/share/licenses/"${pkgname}"/openmp
-}

Copied: intel-oneapi-openmp/repos/community-x86_64/PKGBUILD (from rev 1279575, intel-oneapi-openmp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-25 17:38:18 UTC (rev 1279576)
@@ -0,0 +1,58 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+pkgname=intel-oneapi-openmp
+pkgver=2022.1.0
+_debpkgrel='3768'
+pkgrel=4
+pkgdesc="Intel oneAPI OpenMP runtime library"
+arch=('x86_64')
+url='https://software.intel.com/content/www/us/en/develop/tools/oneapi.html'
+license=("custom")
+source=("https://apt.repos.intel.com/oneapi/pool/main/${pkgname}-${pkgver}-${pkgver}-${_debpkgrel}_amd64.deb"
+        "https://apt.repos.intel.com/oneapi/pool/main/${pkgname}-common-${pkgver}-${pkgver}-${_debpkgrel}_all.deb")
+b2sums=('4bc045f0d1288f19c76ddc985673661335d9e72be5aee4de0d79241d32db8c7889a097aa33f0a613f774e37b04b0b0d916fd0789efca04e41521f935c3b71e9b'
+        '2540d20e5da610f4cfea0632920c81e270704a316af5831e13c17bc31aab8687ed35708c7342270a76a0b456070323ad054f989e78968f5460166b23fed46cbc')
+depends=('intel-oneapi-common' 'libelf')
+noextract=(
+    "${pkgname}-${pkgver}-${pkgver}-${_debpkgrel}_amd64.deb"
+    "${pkgname}-common-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
+)
+build() {
+    cd "${srcdir}"
+    mkdir openmp common package
+
+    cd "${srcdir}"/openmp
+    ar x "${srcdir}/${pkgname}-${pkgver}-${pkgver}-${_debpkgrel}_amd64.deb"
+    tar xvf data.tar.xz -C "${srcdir}"/package
+
+    cd "${srcdir}"/common
+    ar x "${srcdir}/${pkgname}-common-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
+    tar xvf data.tar.xz -C "${srcdir}"/package
+
+    # drop conda binaries
+    rm -r "${srcdir}"/package/opt/intel/oneapi/conda_channel
+}
+
+package() {
+    mv "${srcdir}"/package/opt "${pkgdir}"
+
+    # latest symlink
+    local _prefix=/opt/intel/oneapi/compiler
+    ln -s "${_prefix}/${pkgver}" "${pkgdir}/${_prefix}/latest"
+
+    # fix pkgconfig
+    sed "s at prefix=.*@prefix=${_prefix}/latest at g" \
+        -i "${pkgdir}/${_prefix}/${pkgver}"/lib/pkgconfig/openmp.pc
+    mv "${pkgdir}/${_prefix}/${pkgver}"/lib/pkgconfig/{,'oneapi-'}openmp.pc
+    install -d "${pkgdir}"/usr/lib/pkgconfig
+    ln -s {"${_prefix}"/latest/lib/pkgconfig/,"${pkgdir}"/usr/lib/pkgconfig/}oneapi-openmp.pc
+
+    # ldconfig
+    install -d "${pkgdir}"/etc/ld.so.conf.d
+    echo "${_prefix}"/latest/"$(sed -n 's/libdir=${prefix}\///p' "${pkgdir}/${_prefix}/${pkgver}"/lib/pkgconfig/oneapi-openmp.pc)" \
+        > "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf"
+
+    install -d "${pkgdir}"/usr/share/licenses/"${pkgname}"
+    ln -s /usr/share/licenses/intel-oneapi "${pkgdir}"/usr/share/licenses/"${pkgname}"/oneapi
+    ln -s /opt/intel/oneapi/compiler/"${pkgver}"/licensing/openmp "${pkgdir}"/usr/share/licenses/"${pkgname}"/openmp
+}



More information about the arch-commits mailing list