Created
January 18, 2018 12:41
-
-
Save akhenakh/68955ee4f68d50acc262430e584ec63d to your computer and use it in GitHub Desktop.
opentrack with aruco for X-Plane
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Maxime Morel <maxime@mmorel.eu> | |
pkgname=opentrack-git | |
pkgver=r4730 | |
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=('git' 'cmake' 'xplane-sdk-devel' 'opentrack-aruco-git' ) | |
provides=('opentrack') | |
conflicts=('opentrack') | |
source=("git+https://github.com/opentrack/opentrack.git#commit=a46f6d07c5f8c6d65940b2d8ec62535ee1983315" "opentrack.desktop") | |
pkgver() { | |
cd "$srcdir/opentrack" | |
printf "r%s" "$(git rev-list --count HEAD)" | |
} | |
build() { | |
cd opentrack | |
mkdir -p build | |
cd build | |
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_ARUCO_LIBPATH=/usr/lib/libaruco.a -DCMAKE_INSTALL_PREFIX=/opt | |
/opentrack .. | |
make | |
} | |
package() { | |
cd opentrack/build | |
make DESTDIR="$pkgdir" install | |
install -Dm644 $srcdir/opentrack.desktop $pkgdir/usr/share/applications/opentrack.desktop | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment