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

pkgname=libovr_nsb-git
pkgver=1878f25
pkgrel=1
pkgdesc="Pure C implementation of the Oculus Rift SDK"
arch=(x86_64 i686)
url="https://github.com/ultranbrown/libovr_nsb"
license=("Oculus Rift SDK License")
depends=(hidapi-git freeglut)
options=()
conflicts=('libovr_nsb')
provides=('libovr_nsb')

optdepends=(
  'oculus-udev: Udev rule for Oculus Rift'
)

_gitname='libovr_nsb'
source=("git+https://github.com/ultranbrown/libovr_nsb.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
  rm $pkgdir/usr/bin/gldemo
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}