diff options
author | Christoph Haag | 2015-06-15 17:19:41 +0200 |
---|---|---|
committer | Christoph Haag | 2015-06-15 17:19:41 +0200 |
commit | c2769c0a57747fee7ef9204f083a738d1e399b3e (patch) | |
tree | bbcb6882d00207a853cb48531d7297d4c132addc /PKGBUILD | |
download | aur-c2769c0a57747fee7ef9204f083a738d1e399b3e.tar.gz |
initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a7e4fd999ebb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +pkgname=openvr-git +pkgver=10.e9c7d19 +pkgrel=1 +pkgdesc="API and runtime that allows access to VR hardware from multiple vendors. Contains API and samples. The runtime is under SteamVR in Tools on Steam. Note: There's no compositor for linux, so try with hellovr -nocompositor" +arch=('x86_64') +url="https://github.com/ValveSoftware/openvr" +license=('custom') +depends=('libgl') +optdepends=("oculus-udev: Udev rule to make the rift sensors usable to the user \"plugdev\"" + "steam: For SteamVR (Duh)") +makedepends=('git' 'cmake') +provides=("openvr") +options=('!strip' 'staticlibs') + +#TODO: use my fork with cmake until Valve implements proper linux support for the samples +source=("git+https://github.com/ChristophHaag/openvr.git") +md5sums=("SKIP") + +pkgver() { + cd "$srcdir/openvr" + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +prepare() { + cd "$srcdir/openvr" +} + +build() { + #export CXX=clang++ + #export CC=clang + + mkdir -p build + rm -rf build/* + cd build + + #TODO: rpath will be set to build tree + # it would be cleared by make install, but I have no install target yet. But it's not a problem, so I leave it be + # http://www.cmake.org/Wiki/CMake_RPATH_handling#Always_full_RPATH + cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_BUILD_TYPE=Release ../openvr + make + +} + +package() { + cd "$srcdir/openvr" + + install -d "$pkgdir/usr/lib" + install -d "$pkgdir/usr/bin" + install -d "$pkgdir/usr/include/" + + #cp -ra "$srcdir/openvr/headers"/* "$pkgdir/usr/include/" + install "$srcdir/openvr/headers"/* "$pkgdir/usr/include/" + install -m 555 "$srcdir/openvr/lib/linux64/libopenvr_api.so" "$pkgdir/usr/lib" + install -m 755 "$srcdir/build/samples/hellovr_opengl/hellovr" "$pkgdir/usr/bin" +} + +# vim:set ts=2 sw=2 et: |