1 # Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
2 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
3 # Contributor: Jingbei Li <i@jingbei.li>
4 # Contributor: Intel Corporation <http://www.intel.com/software/products/support>
6 _pkgname='intel-oneapi'
7 pkgname="${_pkgname}-common"
11 pkgdesc="Intel's oneAPI common variables and licensing"
13 url='https://software.intel.com/content/www/us/en/develop/tools/oneapi.html'
15 source=("https://apt.repos.intel.com/oneapi/pool/main/${pkgname}-vars-${pkgver}-${_debpkgrel}_all.deb"
16 "https://apt.repos.intel.com/oneapi/pool/main/${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb")
17 b2sums=('df74f5ec0f79962b6f336e846c2540e250f38f5588b29f34d3a59249c75c99d318fcc734e0b289275be3b4d335c30a43fbd7c0d34f3e531014d813a155fdeb9e'
18 '71ef8ed2e7f04e3935bcaaffc88e916e93e41857f85314dd89bc3640aeb1c25bb6f8721307b90c8b58f307c3a2907fac6c038d0720e1cda1e080688d277a643d')
20 optdepends=("procps-ng: Sourcing /opt/intel/oneapi/setvars.sh")
22 "${pkgname}-vars-${pkgver}-${_debpkgrel}_all.deb"
23 "${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
25 conflicts=('intel-oneapi-basekit')
28 mkdir vars licensing package
34 ar x "${srcdir}/${pkgname}-vars-${pkgver}-${_debpkgrel}_all.deb"
35 tar xvf data.tar.xz -C "${pkgdir}"
38 ar x "${srcdir}/${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
39 tar xvf data.tar.xz -C "${pkgdir}"
42 ln -sfT "${pkgver}" "${pkgdir}"/opt/intel/oneapi/licensing/latest
43 install -d "${pkgdir}"/usr/share/licenses/"${pkgname}"
44 ln -s /opt/intel/oneapi/licensing/latest "${pkgdir}"/usr/share/licenses/"${pkgname}"/latest
45 ln -s "${pkgname}" "${pkgdir}"/usr/share/licenses/"${_pkgname}"
46 ls -lah "${pkgdir}"/usr/share/licenses