blob: 66294d683f1b2b1a2e4b5e1ae7d8b07133bf8802 (
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
47
48
49
50
|
# Maintainer: Daniel Pierce <moofed@gmail.com>
# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributor: Maxime Morel <maxime@mmorel.eu>
pkgname=opentrack
pkgver=2023.3.0
pkgrel=1
pkgdesc="Head tracking software"
arch=('x86_64')
url="https://github.com/opentrack/opentrack/"
license=('ISC')
depends=('qt5-base' 'opencv')
makedepends=('cmake' 'xplane-sdk-devel' 'wine' 'ninja' 'qt5-tools' 'procps-ng')
optdepends=('onnxruntime: neuralnet tracker')
source=("https://github.com/opentrack/opentrack/archive/opentrack-$pkgver.tar.gz"
"opentrack.desktop")
sha256sums=('ba5fea9da4b7d70162648e95ba6dcd8bed140519eb607a99a5daf1b00809f824'
'96b4a633d40f399b927d159353cfaa679d2148156a3f04b5ea23b8d4b8e4bd3f')
build() {
cd opentrack-opentrack-$pkgver
mkdir -p build
cd build
# fix path for xplane plugin
sed -i 's/..\/opentrack-compat\/export.hpp/..\/compat\/export.hpp/' ../x-plane-plugin/plugin.c
mkdir -p xplane_sdk/CHeaders
ln -sf /usr/include/xplane_sdk/Wrappers xplane_sdk/CHeaders/
ln -sf /usr/include/xplane_sdk/Widgets xplane_sdk/CHeaders/
ln -sf /usr/include/xplane_sdk/XPLM xplane_sdk/CHeaders/
cmake .. \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DSDK_XPLANE=xplane_sdk \
-DSDK_WINE=ON \
-DONNXRuntime_DIR=/usr/lib/cmake/onnxruntime \
-DONNXRuntime_INCLUDE_DIR=/usr/include/onnxruntime \
-DCMAKE_INSTALL_PREFIX=/usr
ninja
}
package() {
cd opentrack-opentrack-$pkgver/build
DESTDIR="$pkgdir" ninja install
install -Dm644 $srcdir/opentrack.desktop $pkgdir/usr/share/applications/opentrack.desktop
}
|