[arch-commits] Commit in intel-oneapi-common/repos (2 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Sun Jul 24 11:43:19 UTC 2022


    Date: Sunday, July 24, 2022 @ 11:43:19
  Author: kgizdov
Revision: 1255892

archrelease: copy trunk to community-testing-any

Added:
  intel-oneapi-common/repos/community-testing-any/
  intel-oneapi-common/repos/community-testing-any/PKGBUILD
    (from rev 1255891, intel-oneapi-common/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: intel-oneapi-common/repos/community-testing-any/PKGBUILD (from rev 1255891, intel-oneapi-common/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-07-24 11:43:19 UTC (rev 1255892)
@@ -0,0 +1,40 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Jingbei Li <i at jingbei.li>
+# Contributor: Intel Corporation <http://www.intel.com/software/products/support>
+
+pkgname='intel-oneapi-common'
+pkgver='2022.1.0'
+_debpkgrel='161'
+pkgrel=1
+pkgdesc="Intel's oneAPI common variables and licensing"
+arch=('any')
+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}-vars-${pkgver}-${_debpkgrel}_all.deb"
+        "https://apt.repos.intel.com/oneapi/pool/main/${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb")
+b2sums=('e2e2d4028594e94e66e5d8a7187aac8fb7c1729164b846842840dc618c3a3e31e68183caf5c146a9ff85f03a64f9b9ee395db18295098ce15d2d2b7b9033ccc3'
+        'ec8c7fb6309cdf0278cf1cbfaea952f37217a3f78c4d7d85994ac1e5252539c781b4d42d070a7aff23502eb116bf8889125dcd3d3ad2ae4f7a56519c9606fcc0')
+optdepends=("procps-ng: Sourcing /opt/intel/oneapi/setvars.sh")
+noextract=(
+	"${pkgname}-vars-${pkgver}-${_debpkgrel}_all.deb"
+	"${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
+)
+build() {
+    cd "${srcdir}"
+    mkdir vars licensing package
+
+    cd "${srcdir}"/vars
+	ar x "${srcdir}/${pkgname}-vars-${pkgver}-${_debpkgrel}_all.deb"
+	tar xvf data.tar.xz -C "${srcdir}"/package
+
+    cd "${srcdir}"/licensing
+	ar x "${srcdir}/${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
+	tar xvf data.tar.xz -C "${srcdir}"/package
+}
+
+package() {
+	mv "${srcdir}"/package/opt "${pkgdir}"
+	ln -sfT "${pkgver}" "${pkgdir}"/opt/intel/oneapi/licensing/latest
+    install -d "${pkgdir}"/usr/share/licenses/"${pkgname}"
+    ln -s /opt/intel/oneapi/licensing/latest "${pkgdir}"/usr/share/licenses/"${pkgname}"/latest
+}



More information about the arch-commits mailing list