summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 510de55e718d39c3925a5965e4d750212fa6a6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Author: Árni Dagur <arni@dagur.eu>

# This PKGBUILD is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

pkgname='intel-daal'
_year='2019'
_v_a='4'
_v_b='007'
_tag_suffix='_u4'
pkgver="$_year.$_v_a.$_v_b"
pkgrel=1
pkgdesc='Intel Data Acceleration Library for C++ (Intel® DAAL)'
arch=('x86_64' 'i686')
url='https://software.intel.com/en-us/intel-daal'
license=('Apache-2.0')
depends=('intel-tbb' 'gcc-libs')

source=("https://github.com/intel/daal/releases/download/$_year$_tag_suffix/l_daal_oss_p_$pkgver.tgz")
sha512sums=('a3b06ff510d7af20af631360d10188352cfda5f6f9f656d64abb5d6955d567ac06827ed1614e0420d1cadc583b730142e005079fd3ee788db6da16fc89916ca6')

# Intel uses their own fancy architecture names; see:
# https://software.intel.com/en-us/articles/intel-architecture-platform-terminology
if [ "CARCH" = "i686" ]; then
    _i_arch='ia32'
else
    _i_arch='intel64'
fi

package() {
    cd $srcdir/l_daal_oss_p_$pkgver/daal_prebuild/linux/daal

    # This package does not include Java bindings; if anyone wants to make
    # a split package, feel free to submit a patch.
    rm lib/"$_i_arch"_lin/libJavaAPI.so

    install -d "$pkgdir"/usr/lib
    install -m755 lib/"$_i_arch"_lin/*.so* "$pkgdir"/usr/lib

    install -d "$pkgdir"/usr/include
    cp -a include "$pkgdir"/usr/include/daal
}

# vim: sts=4:sw=4:et