-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
57 lines (54 loc) · 2.78 KB
/
PKGBUILD
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Braden Pellett <[email protected]>
pkgname=simpleopenni-kinect
pkgver=0.27
pkgrel=1
pkgdesc="Processing library for OpenNI and Kinect, including all dependencies."
arch=('i686' 'x86_64')
url="http://code.google.com/p/simple-openni"
license=('GPL2')
depends=('processing')
source=("http://simple-openni.googlecode.com/files/SimpleOpenNI-${pkgver}.zip" "${pkgname}.install")
sha256sums=('cd0f9d74606c13fa125f45366a15d80b57db61146c676bb631521f9f88ae1fbf'
'c8f8e6f14399d9a2e417afc00fe82c69bea43966774e76d5125ac9dca8d83536')
install="${pkgname}.install"
if [[ $CARCH == 'i686' ]]; then
archnum=32
source+=("http://simple-openni.googlecode.com/files/OpenNI_NITE_Installer-Linux${archnum}-${pkgver}.zip")
sha256sums+=('21535834990237d754519ec9b305c8bb5cfa81e6e3813942b4d850ad81632d27')
elif [[ $CARCH == 'x86_64' ]]; then
archnum=64
source+=("http://simple-openni.googlecode.com/files/OpenNI_NITE_Installer-Linux${archnum}-${pkgver}.zip")
sha256sums+=('5bc5d87fbc83758ed9d6db12a5d06d71e3bb606c06b7c98dfd9b1a79246c8b65')
fi
package() {
cd "$srcdir/OpenNI_NITE_Installer-Linux${archnum}-${pkgver}"/OpenNI-Bin-Dev-Linux-*
install -d "$pkgdir"/usr/{lib,bin,share/java}
install -d "$pkgdir"/var/lib/ni
echo "<Licenses />" >"$pkgdir"/var/lib/ni/licenses.xml
echo "<Modules />" >"$pkgdir"/var/lib/ni/modules.xml
install -t "$pkgdir/usr/lib" Lib/*
install -t "$pkgdir/usr/bin" Bin/ni*
install -t "$pkgdir/usr/share/java" Jar/*
cd "$srcdir/OpenNI_NITE_Installer-Linux${archnum}-${pkgver}"/NITE-Bin-Dev-*
local nitever="1_5_2"
install -t "$pkgdir/usr/lib" Bin/*_${nitever}.so
install -t "$pkgdir/usr/share/java" Bin/com.primesense.NITE.jar
install -d "$pkgdir"/etc/primesense/{Features/Data,Hands}
install -m 644 -t "$pkgdir"/etc/primesense/Features Features_$nitever/Data/*.{ini,dat}
install -m 644 -t "$pkgdir"/etc/primesense/Features/Data Features_$nitever/Data/Data/*
install -m 644 -t "$pkgdir"/etc/primesense/Hands Hands_$nitever/Data/*
install -t "$pkgdir"/usr/lib {Features,Hands}_$nitever/Bin/*.so
install -t "$pkgdir/usr/bin" Features_$nitever/Bin/XnVSceneServer_$nitever
cd "$srcdir/OpenNI_NITE_Installer-Linux${archnum}-${pkgver}"/kinect/Sensor-Bin-Linux-*
install -t "$pkgdir/usr/lib" Lib/*
install -t "$pkgdir/usr/bin" Bin/*
install -m 1777 -d "$pkgdir/var/log/primesense/XnSensorServer"
install -d "$pkgdir/usr/lib/modprobe.d"
install -d "$pkgdir/usr/lib/udev/rules.d"
install -m 644 -t "$pkgdir/usr/lib/modprobe.d" Install/blacklist-gspca-kinect.conf
install -m 644 -t "$pkgdir/usr/lib/udev/rules.d" Install/55-primesense-usb.rules
install -m 644 -t "$pkgdir"/etc/primesense Config/GlobalDefaultsKinect.ini
cd "$srcdir"
install -d "$pkgdir"/usr/share/processing/modes/java/libraries
cp -a SimpleOpenNI "$pkgdir"/usr/share/processing/modes/java/libraries/
}