summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 276c613afdf72414eb82c231424827d37d64621d (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
pkgname=onnxruntime-lib-git
pkgver=1.12.1
pkgrel=2
pkgdesc="ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator"
arch=('x86_64')
url="https://www.onnxruntime.ai/"
license=('MIT')
groups=()
depends=()
makedepends=()
provides=("onnxruntime")
conflicts=("onnxruntime")
replaces=()
backup=()
options=()
# install=
source=("https://github.com/microsoft/onnxruntime/releases/download/v${pkgver}/onnxruntime-linux-x64-${pkgver}.tgz"
        "$pkgname.zip::https://github.com/microsoft/onnxruntime/archive/refs/heads/main.zip")
noextract=()
md5sums=('SKIP'
         'SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

package() {
    mkdir -p "${pkgdir}/usr/include"
    mkdir -p "${pkgdir}/usr/lib"
    cp -r "${srcdir}/onnxruntime-main/include"/* "${pkgdir}/usr/include/"
    cp "${srcdir}/onnxruntime-linux-x64-${pkgver}/include"/* "${pkgdir}/usr/include/"
    cp "${srcdir}/onnxruntime-linux-x64-${pkgver}/lib"/* "${pkgdir}/usr/lib/"
}