upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / intel-oneapi-common / trunk / PKGBUILD
blobb874752d5a1bdf9613be35b3eabda01fa60796f8
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"
8 pkgver=2023.1.0
9 _debpkgrel=43473
10 pkgrel=1
11 pkgdesc="Intel's oneAPI common variables and licensing"
12 arch=('any')
13 url='https://software.intel.com/content/www/us/en/develop/tools/oneapi.html'
14 license=("custom")
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')
19 depends=('sh')
20 optdepends=("procps-ng: Sourcing /opt/intel/oneapi/setvars.sh")
21 noextract=(
22     "${pkgname}-vars-${pkgver}-${_debpkgrel}_all.deb"
23     "${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
25 conflicts=('intel-oneapi-basekit')
27 build() {
28     mkdir vars licensing package
32 package() {
33     cd "${srcdir}"
34     ar x "${srcdir}/${pkgname}-vars-${pkgver}-${_debpkgrel}_all.deb"
35     tar xvf data.tar.xz -C "${pkgdir}"
36     rm data.tar.xz
38     ar x "${srcdir}/${pkgname}-licensing-${pkgver}-${pkgver}-${_debpkgrel}_all.deb"
39     tar xvf data.tar.xz -C "${pkgdir}"
40     rm data.tar.xz
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