summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD18
2 files changed, 18 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6718fcb71ad0..dd8bf0ed1a10 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
pkgbase = opentrack
pkgdesc = An application dedicated to tracking user's head movements and relaying the information to games and flight simulation software
- pkgver = 2.3rc21p11
- pkgrel = 3
+ pkgver = 2.3rc11
+ pkgrel = 1
url = https://github.com/opentrack/opentrack/
arch = i686
arch = x86_64
license = GPL3
makedepends = cmake
+ makedepends = xplane-sdk-devel
+ makedepends = wine
depends = qt5-base
depends = opencv
- source = https://github.com/opentrack/opentrack/archive/opentrack-2.3-rc21p11.tar.gz
+ source = https://github.com/opentrack/opentrack/archive/opentrack-2.3-rc99p11.tar.gz
source = opentrack.desktop
- sha256sums = 0b7edcf35071ae6f227c3a94505df245ebdc9026ce5a34e04d694aa675b1efbc
+ sha256sums = 3607c37a0259c9320d3cbb687e0b8e477e511e304dad7b8933ca6a57e8adb4c3
sha256sums = e39d8d68739f875393c4b0bec61aacf5d2fa7970327c82d9b4e97f643e4fb0cc
pkgname = opentrack
diff --git a/PKGBUILD b/PKGBUILD
index 7dcc2bab91fb..9684f7a683e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,30 @@
# Maintainer: Maxime Morel <maxime@mmorel.eu>
pkgname=opentrack
-pkgver=2.3rc21p11
-_pkgver=2.3-rc21p11
-pkgrel=3
+pkgver=2.3rc11
+_pkgver=2.3-rc99p11
+pkgrel=1
pkgdesc="An application dedicated to tracking user's head movements and relaying the information to games and flight simulation software"
arch=('i686' 'x86_64')
url="https://github.com/opentrack/opentrack/"
license=('GPL3')
depends=('qt5-base' 'opencv')
-makedepends=('cmake')
+makedepends=('cmake' 'xplane-sdk-devel' 'wine')
source=("https://github.com/opentrack/opentrack/archive/opentrack-$_pkgver.tar.gz" "opentrack.desktop")
-sha256sums=('0b7edcf35071ae6f227c3a94505df245ebdc9026ce5a34e04d694aa675b1efbc'
+sha256sums=('3607c37a0259c9320d3cbb687e0b8e477e511e304dad7b8933ca6a57e8adb4c3'
'e39d8d68739f875393c4b0bec61aacf5d2fa7970327c82d9b4e97f643e4fb0cc')
build() {
cd opentrack-opentrack-$_pkgver
mkdir -p build
cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DSDK_ENABLE_LIBEVDEV=ON -DCMAKE_INSTALL_PREFIX=/opt/opentrack ..
+ # 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 -DCMAKE_BUILD_TYPE=Release -DSDK_ENABLE_LIBEVDEV=ON -DSDK_XPLANE=xplane_sdk -DSDK_WINE_PREFIX=/ -DCMAKE_INSTALL_PREFIX=/opt/opentrack ..
make
}