# Maintainer: Lubosz Sarnecki pkgname=openhmd-git pkgver=0.2.0.246.g38183e0 pkgrel=1 pkgdesc="Free and Open Source API and drivers for immersive technology. Supports Oculus Rift." arch=(x86_64 i686) url="https://github.com/OpenHMD/OpenHMD" license=(Boost) depends=(hidapi) options=() conflicts=('openhmd') provides=('openhmd') optdepends=( 'oculus-udev: Udev rule for Oculus Rift' ) _gitname='OpenHMD' source=("git+https://github.com/OpenHMD/OpenHMD.git") sha256sums=("SKIP") pkgver() { cd $_gitname git describe --tag | sed 's|-|.|g' } build() { cd $_gitname ./autogen.sh ./configure --prefix=/usr make } package() { cd $_gitname make DESTDIR="$pkgdir/" install mv $pkgdir/usr/bin/simple $pkgdir/usr/bin/openhmd-example mv $pkgdir/usr/bin/unittests $pkgdir/usr/bin/openhmd-unittests install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }