summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f6b875974fd3dd3c7871b098afd6a4b4e4ebe46 (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
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>

pkgname=openhmd-git
pkgver=0.1.0.103.g44ccc45
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-git)
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 --always | 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"
}