blob: fdfbd78d82cecac08e48aabe9a4244e2d93b6f79 (
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
|
pkgname=hailort
pkgver=4.19.0
pkgrel=1
pkgdesc="Hailo AI accelerator runtime for Hailo AI PCIe devices"
arch=('aarch64' 'x86_64')
url="https://hailo.ai/"
license=('GPL-2.0')
depends=('hailo-pci')
makedepends=('cmake' 'gcc')
provides=('libhailort.so')
source=("https://github.com/hailo-ai/hailort/archive/v${pkgver}.tar.gz")
sha256sums=('92ab5613ee83cd5b85724b06aa6fcb04a6ac0784ef75a51f6884dc736dc0fd7d')
build() {
cd hailort-${pkgver}
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr -B.rel .
cd .rel
make all
}
package() {
cd hailort-${pkgver}/.rel
# cmake files
make DESTDIR=${pkgdir} install
# tool
install -Dvm 755 ${pkgname}/${pkgname}cli/${pkgname}cli ${pkgdir}/usr/bin/${pkgname}cli
# lib
install -Dvm 755 ${pkgname}/lib${pkgname}/src/lib${pkgname}.so.${pkgver} \
${pkgdir}/usr/lib/lib${pkgname}.so.${pkgver}
cd ${pkgdir}/usr/lib
ln -s lib${pkgname}.so.${pkgver} lib${pkgname}.so
# c++ includes
cp -ar ${srcdir}/hailort-${pkgver}/${pkgname}/lib${pkgname}/include ${pkgdir}/usr/
}
|