summaryrefslogtreecommitdiff
path: root/~lukeshu/openni-module-primesensor-git
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-11 19:20:11 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-11 19:20:11 -0500
commit2574d86e478780b7f332aa097b4db4a3a5e4ca30 (patch)
treec5ea5d81f1787e20a8877ed55e36db2504b20428 /~lukeshu/openni-module-primesensor-git
parent4e95bca59f0c5b9958ffd378be9934f7dee4f98a (diff)
parentb503754d5f727f122db3affe434ab54426fb0cb9 (diff)
downloadabslibre-2574d86e478780b7f332aa097b4db4a3a5e4ca30.tar.gz
abslibre-2574d86e478780b7f332aa097b4db4a3a5e4ca30.tar.bz2
abslibre-2574d86e478780b7f332aa097b4db4a3a5e4ca30.zip
Merge gitorious.org:lukeshu-parabola-repo/lukeshu-parabola-repo
Conflicts: .gitignore
Diffstat (limited to '~lukeshu/openni-module-primesensor-git')
-rw-r--r--~lukeshu/openni-module-primesensor-git/PKGBUILD65
1 files changed, 65 insertions, 0 deletions
diff --git a/~lukeshu/openni-module-primesensor-git/PKGBUILD b/~lukeshu/openni-module-primesensor-git/PKGBUILD
new file mode 100644
index 000000000..0ebfac2e5
--- /dev/null
+++ b/~lukeshu/openni-module-primesensor-git/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Contributor: pallegro from the AUR
+
+_pkgname=openni-module-primesensor
+pkgname=${_pkgname}-git
+pkgver=20111115
+pkgrel=1
+pkgdesc="OpenNI PrimeSensor harware modules for the PrimeSense sensor device"
+arch=('i686')
+url="http://www.primesense.com/"
+license=('GPL')
+depends=('openni')
+makedepends=('git')
+provides=($_pkgname)
+conflicts=($_pkgname)
+install="sensorkinect.install"
+source=()
+md5sums=()
+
+_gitroot="https://github.com/PrimeSense/Sensor.git"
+_gitname="primesensor"
+_gitbranch="unstable"
+#_gitbranch="master"
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [ -d $_gitname ] ; then
+ cd $_gitname && git pull origin
+ msg "The local files are updated."
+ else
+ git clone -b $_gitbranch $_gitroot $_gitname
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd $srcdir/$_gitname-build
+
+ # BUILD
+ cd Platform/Linux-x86/Build
+ make NI_CONF_DIR=/etc || return 1
+}
+
+package() {
+ install -d -m755 ${pkgdir}/usr/{lib,bin}
+
+ cd $srcdir/$_gitname-build/Platform/Linux-x86/Bin/Release
+ install XnSensorServer ${pkgdir}/usr/bin
+ install libXnCore.so libXnDDK.so libXnDeviceFile.so libXnDeviceSensorV2KM.so libXnFormats.so ${pkgdir}/usr/lib
+ chmod +s ${pkgdir}/usr/bin/XnSensorServer
+
+ cd $srcdir/$_gitname-build/Platform/Linux-x86/Install
+ install -d -m755 ${pkgdir}/etc/udev/rules.d
+ install 55-primesense-usb.rules ${pkgdir}/etc/udev/rules.d
+
+ cd $srcdir/$_gitname-build/Data
+ install -d -m755 ${pkgdir}/etc/primesense
+ install GlobalDefaultsKinect.ini ${pkgdir}/etc/primesense
+
+ install -d -m777 ${pkgdir}/var/log/primesense/XnSensorServer
+}