diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-04-03 14:54:55 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-04-03 14:54:55 +0000 |
commit | b618c3d0693aec564c6746238fd05d94e31d3b76 (patch) | |
tree | 4a4834f3097bba25dba1adeba4324080c1b4bf7b /~lukeshu | |
parent | 8cb5196780766f47b595410eed8ddbee2e8add08 (diff) |
Tue Apr 3 14:54:45 UTC 2012
Diffstat (limited to '~lukeshu')
-rw-r--r-- | ~lukeshu/openni-git/PKGBUILD | 286 | ||||
-rw-r--r-- | ~lukeshu/openni-git/openni.install | 11 | ||||
-rw-r--r-- | ~lukeshu/openni-module-primesensor-git/PKGBUILD | 65 | ||||
-rw-r--r-- | ~lukeshu/openni-module-sensorkinect-git/PKGBUILD | 77 | ||||
-rw-r--r-- | ~lukeshu/openni-module-sensorkinect-git/sensorkinect.install | 15 | ||||
-rw-r--r-- | ~lukeshu/openni-unstable-git/PKGBUILD | 286 | ||||
-rw-r--r-- | ~lukeshu/openni-unstable-git/openni.install | 11 | ||||
-rw-r--r-- | ~lukeshu/openni-unstable/PKGBUILD | 294 | ||||
-rw-r--r-- | ~lukeshu/openni-unstable/openni-core.install | 11 | ||||
-rw-r--r-- | ~lukeshu/openni-unstable/openni-mono.install | 7 | ||||
-rw-r--r-- | ~lukeshu/openni/PKGBUILD | 288 | ||||
-rw-r--r-- | ~lukeshu/openni/openni.install | 11 |
12 files changed, 0 insertions, 1362 deletions
diff --git a/~lukeshu/openni-git/PKGBUILD b/~lukeshu/openni-git/PKGBUILD deleted file mode 100644 index 7ac6abb87..000000000 --- a/~lukeshu/openni-git/PKGBUILD +++ /dev/null @@ -1,286 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> -# Contributor: bugix -# Contributor: Lubosz Sarnecki <lubosz at gmail> - -# unfortunately we can't use $_suf in function names, but sed makes it ok -_suf='-git' -pkgname=( - openni$_suf - openni$_suf-docs - - openni$_suf-core - openni$_suf-core-samples - openni$_suf-core-samples-source - - openni$_suf-mono - openni$_suf-mono-samples - openni$_suf-mono-samples-source - - openni$_suf-java - openni$_suf-java-samples - openni$_suf-java-samples-source - ) -pkgver=20111121 -pkgrel=4 -arch=('i686' 'x86_64') -url="http://www.openni.org/" -license=('GPL') -makedepends=('git' 'doxygen' 'graphviz') -source=() -md5sums=() - -_gitroot="git://github.com/OpenNI/OpenNI.git" -_gitname="openni" -#_gitbranch="unstable" -_gitbranch="master" - -_os='Linux' -case "${CARCH}" in -'x86_64') _arch=x86;; -'i686') _arch=x86;; -'arm') _arch=Arm;; # untested -*) _arch=UNSUPPORTED_ARCH;; -esac -_platform="${_os}-${_arch}" - -export MAKEFLAGS+=' -j1 ' - -build() { - cd "${srcdir}" - msg "Connecting to GIT server...." - - if [ -d ${_gitname} ] ; then - cd ${_gitname} - git checkout master - git pull origin - msg "The local files are updated." - else - git clone ${_gitroot} ${_gitname} - cd ${_gitname} - fi - git checkout ${_gitbranch} - cd .. - - 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" - - # PATCH - sed -i 's/python /python2 /' "Platform/${_platform}/CreateRedist/RedistMaker" - echo ' -abs_core: $(ALL_MODULES) $(ALL_UTILS) -abs_core_samples: $(CORE_SAMPLES) -abs_java: $(ALL_JAVA_PROJS) -abs_java_samples: $(JAVA_SAMPLES) -abs_mono: $(ALL_MONO_PROJS) -abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) -' >> "Platform/${_platform}/Build/Makefile" - - - # BUILD - cd "Platform/${_platform}/Build" - make -j1 \ - abs_core abs_core_samples \ - abs_java abs_java_samples \ - abs_mono abs_mono_samples || return 1 - - cd '../../../Source/DoxyGen' - mkdir html - doxygen Doxyfile - rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp -} - -package_openni-git() { - pkgdesc="Open Natural Interface framework" - depends=("openni$_suf-core") - optdepends=("openni$_suf-docs: programmer documentation") - provides=('openni') - conflicts=('openni') -} - -package_openni-git-docs() { - pkgdesc="OpenNI programmer documentation" - arch=('any') - provides=('openni-docs') - conflicts=('openni-docs') - - cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" - install -d "${pkgdir}/usr/share/openni" - cp -r html "${pkgdir}/usr/share/openni" -} - -package_openni-git-core() { - pkgdesc="OpenNI core libraries" - depends=('libusb' 'freeglut') - install="openni.install" - provides=('openni-core') - conflicts=('openni-core') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - - LIB_FILES=' - libnimCodecs.so - libnimMockNodes.so - libnimRecorder.so - libOpenNI.so - ' - install -d "${pkgdir}/usr/lib" - install -m755 $LIB_FILES "${pkgdir}/usr/lib" - - BIN_FILES='niReg niLicense' - install -d "${pkgdir}/usr/bin" - install -m755 $BIN_FILES "${pkgdir}/usr/bin" - - cd "${srcdir}/${_gitname}-build/Include" - install -d "${pkgdir}/usr/include/ni" - install -m644 *.h "${pkgdir}/usr/include/ni" - cp -r "${_platform}" "${pkgdir}/usr/include/ni" - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Build" - install -d "${pkgdir}/usr/share" - cp -r Common "${pkgdir}/usr/share/common" -} - -package_openni-git-java() { - pkgdesc="OpenNI java wrapper" - depends=("openni$_suf" 'java-environment') - provides=('openni-java') - conflicts=('openni-java') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - - install -d "${pkgdir}/usr/lib" - install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" - - install -d "${pkgdir}/usr/share/openni/java" - install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" -} - -package_openni-git-mono() { - pkgdesc="OpenNI mono wrapper" - depends=("openni$_suf" 'mono') - provides=('openni-mono') - conflicts=('openni-mono') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - - install -d "${pkgdir}/usr/share/openni/mono" - install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" -} - -# SAMPLES - -_install_sample_source() { - sample=$1 - makefile="Platform/${_platform}/Build/Samples/$sample/Makefile" - install -d "${pkgdir}/usr/share/openni/samples" - cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" - install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" -} - -# Leave out NiViewer, it's set up wrong -CORE_SAMPLES=' - AudioSample - BackRecorder - CRead - ConvertXToONI - RecordSynthetic - SimpleCreate - SimpleRead SimpleViewer UserTracker' -MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' -JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' - -package_openni-git-core-samples() { - pkgdesc="OpenNI sample programs" - depends=("openni$_suf-core") - optdepends=('openni-core-samples-source: source code for the samples') - provides=('openni-core-samples') - conflicts=('openni-core-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - install -d "${pkgdir}/usr/bin" - install -m755 NiViewer "${pkgdir}/usr/bin/niSample-Viewer" - for sample in $CORE_SAMPLES; do - install -m766 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" - done -} -package_openni-git-core-samples-source() { - pkgdesc="OpenNI sample programs source code" - depends=("openni$_suf-core") - provides=('openni-core-samples-source') - conflicts=('openni-core-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in Viewer $CORE_SAMPLES; do - _install_sample_source Ni$sample - done -} - -package_openni-git-java-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-java") - optdepends=("openni$_suf-java-samples-source: source code for the samples") - arch=('any') - provides=('openni-java-samples') - conflicts=('openni-java-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/java" - for sample in $JAVA_SAMPLES; do - install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" - echo "#/bin/sh -java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ -" > "${pkgdir}/usr/bin/niSample-$sample.jar" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" - done -} -package_openni-git-java-samples-source() { - pkgdesc="OpenNI java wrapper sample programs source code" - depends=("openni$_suf-java") - provides=('openni-java-samples-source') - conflicts=('openni-java-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in $JAVA_SAMPLES; do - _install_sample_source $sample.java - done -} - -package_openni-git-mono-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-mono") - optdepends=("openni$_suf-mono-samples-source: source code for the samples") - provides=('openni-mono-samples') - conflicts=('openni-mono-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/mono" - for sample in $MONO_SAMPLES; do - install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" - echo "#/bin/sh -cd /usr/share/openni/mono -mono $sample.net.exe $@ -" > "${pkgdir}/usr/bin/niSample-$sample.net" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" - done -} -package_openni-git-mono-samples-source() { - pkgdesc="OpenNI mono wrapper sample programs source code" - depends=("openni$_suf-mono") - provides=('openni-mono-samples-source') - conflicts=('openni-mono-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in $MONO_SAMPLES; do - _install_sample_source $sample.net - done -} diff --git a/~lukeshu/openni-git/openni.install b/~lukeshu/openni-git/openni.install deleted file mode 100644 index 8470f4512..000000000 --- a/~lukeshu/openni-git/openni.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" - for module in $MODULES - do - /usr/bin/niReg /usr/lib/$module - done -} - -pre_remove() { - rm /var/lib/ni/modules.xml -} diff --git a/~lukeshu/openni-module-primesensor-git/PKGBUILD b/~lukeshu/openni-module-primesensor-git/PKGBUILD deleted file mode 100644 index 0ebfac2e5..000000000 --- a/~lukeshu/openni-module-primesensor-git/PKGBUILD +++ /dev/null @@ -1,65 +0,0 @@ -# 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 -} diff --git a/~lukeshu/openni-module-sensorkinect-git/PKGBUILD b/~lukeshu/openni-module-sensorkinect-git/PKGBUILD deleted file mode 100644 index 2a2abbdc5..000000000 --- a/~lukeshu/openni-module-sensorkinect-git/PKGBUILD +++ /dev/null @@ -1,77 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Contributor: pallegro from the AUR - -pkgname=openni-module-sensorkinect-git -pkgver=20111211 -pkgrel=2 -pkgdesc="OpenNI SensorKinect harware modules for the Xbox Kinect device" -arch=('i686' 'x86_64') -url="https://github.com/avin2/SensorKinect" -license=('GPL') -depends=('openni-unstable' 'kinect-udev') -makedepends=('git') -provides=('openni-module-sensorkinect') -conflicts=('openni-module-sensorkinect' 'openni-module-primesensor') -install="sensorkinect.install" -source=() -md5sums=() - -_gitroot="https://github.com/avin2/SensorKinect.git" -_gitname="sensorkinect" -_gitbranch="master" - -_os='Linux' -case "${CARCH}" in -'x86_64') _arch=x86;; -'i686') _arch=x86;; -'arm') _arch=Arm;; # untested -*) _arch=UNSUPPORTED_ARCH;; -esac -_platform="${_os}-${_arch}" - -build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [ -d ${_gitname} ] ; then - cd ${_gitname} - git checkout master - git pull origin - msg "The local files are updated." - else - git clone ${_gitroot} ${_gitname} - cd ${_gitname} - fi - git checkout ${_gitbranch} - cd .. - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd $srcdir/$_gitname-build - - # BUILD - cd Platform/${_platform}/Build - make - make redist -} - -package() { - cd $srcdir/$_gitname-build - cd Platform/${_platform}/Redist - - # This is all cloned from ./install.sh, which can't be used for a number - # of reasons. - install -d $pkgdir/usr/{lib,bin} - install -m755 Lib/* $pkgdir/usr/lib - install -m755 Bin/* $pkgdir/usr/bin - - install -d $pkgdir/etc/primesense - install -m644 Config/GlobalDefaultsKinect.ini $pkgdir/etc/primesense - - chmod +s $pkgdir/usr/bin/XnSensorServer - - install -m777 -d $pkgdir/var/log/primesense/XnSensorServer -} diff --git a/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install b/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install deleted file mode 100644 index d62d263d1..000000000 --- a/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -export MODULES="libXnDeviceSensorV2KM.so libXnDeviceFile.so" - -post_install() { - for module in $MODULES; do - /usr/bin/niReg -r /usr/lib/$module /etc/primesense - done -} - -pre_remove() { - for module in $MODULES; do - /usr/bin/niReg -u /usr/lib/$module - done -} diff --git a/~lukeshu/openni-unstable-git/PKGBUILD b/~lukeshu/openni-unstable-git/PKGBUILD deleted file mode 100644 index 07f276b02..000000000 --- a/~lukeshu/openni-unstable-git/PKGBUILD +++ /dev/null @@ -1,286 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> -# Contributor: bugix -# Contributor: Lubosz Sarnecki <lubosz at gmail> - -# unfortunately we can't use $_suf in function names, but sed makes it ok -_suf='-unstable-git' -pkgname=( - openni$_suf - openni$_suf-docs - - openni$_suf-core - openni$_suf-core-samples - openni$_suf-core-samples-source - - openni$_suf-mono - openni$_suf-mono-samples - openni$_suf-mono-samples-source - - openni$_suf-java - openni$_suf-java-samples - openni$_suf-java-samples-source - ) -pkgver=20111121 -pkgrel=4 -arch=('i686' 'x86_64') -url="http://www.openni.org/" -license=('GPL') -makedepends=('git' 'doxygen' 'graphviz') -source=() -md5sums=() - -_gitroot="git://github.com/OpenNI/OpenNI.git" -_gitname="openni" -_gitbranch="unstable" -#_gitbranch="master" - -_os='Linux' -case "${CARCH}" in -'x86_64') _arch=x86;; -'i686') _arch=x86;; -'arm') _arch=Arm;; # untested -*) _arch=UNSUPPORTED_ARCH;; -esac -_platform="${_os}-${_arch}" - -export MAKEFLAGS+=' -j1 ' - -build() { - cd "${srcdir}" - msg "Connecting to GIT server...." - - if [ -d ${_gitname} ] ; then - cd ${_gitname} - git checkout master - git pull origin - msg "The local files are updated." - else - git clone ${_gitroot} ${_gitname} - cd ${_gitname} - fi - git checkout ${_gitbranch} - cd .. - - 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" - - # PATCH - sed -i 's/python /python2 /' "Platform/${_os}/CreateRedist/RedistMaker" - echo ' -abs_core: $(ALL_MODULES) $(ALL_UTILS) -abs_core_samples: $(CORE_SAMPLES) -abs_java: $(ALL_JAVA_PROJS) -abs_java_samples: $(JAVA_SAMPLES) -abs_mono: $(ALL_MONO_PROJS) -abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) -' >> "Platform/${_os}/Build/Makefile" - - - # BUILD - cd "Platform/${_os}/Build" - make -j1 \ - abs_core abs_core_samples \ - abs_java abs_java_samples \ - abs_mono abs_mono_samples || return 1 - - cd '../../../Source/DoxyGen' - mkdir html - doxygen Doxyfile - rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp -} - -package_openni-unstable-git() { - pkgdesc="Open Natural Interface framework" - depends=("openni$_suf-core") - optdepends=("openni$_suf-docs: programmer documentation") - provides=('openni' 'openni-unstable') - conflicts=('openni' 'openni-unstable') -} - -package_openni-unstable-git-docs() { - pkgdesc="OpenNI programmer documentation" - arch=('any') - provides=('openni-docs' 'openni-unstable-docs') - conflicts=('openni-docs' 'openni-unstable-docs') - - cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" - install -d "${pkgdir}/usr/share/openni" - cp -r html "${pkgdir}/usr/share/openni" -} - -package_openni-unstable-git-core() { - pkgdesc="OpenNI core libraries" - depends=('libusb' 'freeglut') - install="openni.install" - provides=('openni-core' 'openni-unstable-core') - conflicts=('openni-core' 'openni-unstable-core') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - - LIB_FILES=' - libnimCodecs.so - libnimMockNodes.so - libnimRecorder.so - libOpenNI.so - ' - install -d "${pkgdir}/usr/lib" - install -m755 $LIB_FILES "${pkgdir}/usr/lib" - - BIN_FILES='niReg niLicense' - install -d "${pkgdir}/usr/bin" - install -m755 $BIN_FILES "${pkgdir}/usr/bin" - - cd "${srcdir}/${_gitname}-build/Include" - install -d "${pkgdir}/usr/include/ni" - install -m644 *.h "${pkgdir}/usr/include/ni" - cp -r "${_platform}" "${pkgdir}/usr/include/ni" - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Build" - install -d "${pkgdir}/usr/share" - cp -r Common "${pkgdir}/usr/share/common" -} - -package_openni-unstable-git-java() { - pkgdesc="OpenNI java wrapper" - depends=("openni$_suf" 'java-environment') - provides=('openni-java' 'openni-unstable-java') - conflicts=('openni-java' 'openni-unstable-java') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - - install -d "${pkgdir}/usr/lib" - install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" - - install -d "${pkgdir}/usr/share/openni/java" - install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" -} - -package_openni-unstable-git-mono() { - pkgdesc="OpenNI mono wrapper" - depends=("openni$_suf" 'mono') - provides=('openni-mono' 'openni-unstable-mono') - conflicts=('openni-mono' 'openni-unstable-mono') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - - install -d "${pkgdir}/usr/share/openni/mono" - install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" -} - -# SAMPLES - -_install_sample_source() { - sample=$1 - makefile="Platform/${_os}/Build/Samples/$sample/Makefile" - install -d "${pkgdir}/usr/share/openni/samples" - cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" - install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" -} - -# Leave out NiViewer, it's set up wrong -CORE_SAMPLES=' - AudioSample - BackRecorder - CRead - ConvertXToONI - RecordSynthetic - SimpleCreate - SimpleRead SimpleViewer UserTracker' -MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' -JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' - -package_openni-unstable-git-core-samples() { - pkgdesc="OpenNI sample programs" - depends=("openni$_suf-core") - optdepends=('openni-core-samples-source: source code for the samples') - provides=('openni-core-samples' 'openni-unstable-core-samples') - conflicts=('openni-core-samples' 'openni-unstable-core-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - install -d "${pkgdir}/usr/bin" - install -m755 NiViewer "${pkgdir}/usr/bin/niSample-Viewer" - for sample in $CORE_SAMPLES; do - install -m766 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" - done -} -package_openni-unstable-git-core-samples-source() { - pkgdesc="OpenNI sample programs source code" - depends=("openni$_suf-core") - provides=('openni-core-samples-source' 'openni-unstable-core-samples-source') - conflicts=('openni-core-samples-source' 'openni-unstable-core-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in Viewer $CORE_SAMPLES; do - _install_sample_source Ni$sample - done -} - -package_openni-unstable-git-java-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-java") - optdepends=("openni$_suf-java-samples-source: source code for the samples") - arch=('any') - provides=('openni-java-samples' 'openni-unstable-java-samples') - conflicts=('openni-java-samples' 'openni-unstable-java-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/java" - for sample in $JAVA_SAMPLES; do - install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" - echo "#/bin/sh -java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ -" > "${pkgdir}/usr/bin/niSample-$sample.jar" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" - done -} -package_openni-unstable-git-java-samples-source() { - pkgdesc="OpenNI java wrapper sample programs source code" - depends=("openni$_suf-java") - provides=('openni-java-samples-source' 'openni-unstable-java-samples-source') - conflicts=('openni-java-samples-source' 'openni-unstable-java-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in $JAVA_SAMPLES; do - _install_sample_source $sample.java - done -} - -package_openni-unstable-git-mono-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-mono") - optdepends=("openni$_suf-mono-samples-source: source code for the samples") - provides=('openni-mono-samples' 'openni-unstable-mono-samples') - conflicts=('openni-mono-samples' 'openni-unstable-mono-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/mono" - for sample in $MONO_SAMPLES; do - install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" - echo "#/bin/sh -cd /usr/share/openni/mono -mono $sample.net.exe $@ -" > "${pkgdir}/usr/bin/niSample-$sample.net" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" - done -} -package_openni-unstable-git-mono-samples-source() { - pkgdesc="OpenNI mono wrapper sample programs source code" - depends=("openni$_suf-mono") - provides=('openni-mono-samples-source' 'openni-unstable-mono-samples-source') - conflicts=('openni-mono-samples-source' 'openni-unstable-mono-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in $MONO_SAMPLES; do - _install_sample_source $sample.net - done -} diff --git a/~lukeshu/openni-unstable-git/openni.install b/~lukeshu/openni-unstable-git/openni.install deleted file mode 100644 index 8470f4512..000000000 --- a/~lukeshu/openni-unstable-git/openni.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" - for module in $MODULES - do - /usr/bin/niReg /usr/lib/$module - done -} - -pre_remove() { - rm /var/lib/ni/modules.xml -} diff --git a/~lukeshu/openni-unstable/PKGBUILD b/~lukeshu/openni-unstable/PKGBUILD deleted file mode 100644 index 19d1575a1..000000000 --- a/~lukeshu/openni-unstable/PKGBUILD +++ /dev/null @@ -1,294 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> -# Contributor: bugix -# Contributor: Lubosz Sarnecki <lubosz at gmail> - -# unfortunately we can't use $_suf in function names, but sed makes it ok -_suf='-unstable' -pkgname=( - openni$_suf - openni$_suf-docs - - openni$_suf-core - openni$_suf-core-samples - openni$_suf-core-samples-source - - openni$_suf-mono - openni$_suf-mono-samples - openni$_suf-mono-samples-source - - openni$_suf-java - openni$_suf-java-samples - openni$_suf-java-samples-source - ) -pkgver=1.4.0.2 -pkgrel=1 -arch=('i686' 'x86_64') -url="http://www.openni.org/" -license=('GPL') -makedepends=('git' 'doxygen' 'graphviz') -options+=('!strip') -source=() -md5sums=() - -__gitroot="git://github.com/OpenNI/OpenNI.git" -_gitname="openni" -_gitbranch="Unstable-$pkgver" - -_os='Linux' -case "${CARCH}" in -'x86_64') _arch=x64;; -'i686') _arch=x86;; -'arm') _arch=Arm;; # untested -*) _arch=UNSUPPORTED_ARCH;; -esac -_platform="${_os}-${_arch}" - -export MAKEFLAGS+=' -j1 ' - -build() { - cd "${srcdir}" - msg "Connecting to GIT server...." - - #if [ -d ${_gitname} ] ; then - cd ${_gitname} - # git checkout master - # git pull origin - # msg "The local files are updated." - #else - # git clone ${__gitroot} ${_gitname} - # cd ${_gitname} - #fi - git checkout ${_gitbranch} - cd .. - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - #rm -rf "${srcdir}/${_gitname}-build" - #git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" - cd "${srcdir}/${_gitname}-build" - - # PATCH - sed -i 's/python /python2 /' "Platform/${_os}/CreateRedist/RedistMaker" - - for sample in NiViewer NiSimpleViewer NiUserTracker NiUserSelection NiHandTracker; do - echo 'USED_LIBS += GL' >> "Platform/${_os}/Build/Samples/${sample}/Makefile" - done - - echo ' -abs_core: $(ALL_MODULES) $(ALL_UTILS) -abs_core_samples: $(CORE_SAMPLES) -abs_java: $(ALL_JAVA_PROJS) -abs_java_samples: $(JAVA_SAMPLES) -abs_mono: $(ALL_MONO_PROJS) -abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) -' >> "Platform/${_os}/Build/Makefile" - - - # BUILD - cd "Platform/${_os}/Build" - make -j1 \ - abs_core abs_core_samples \ - abs_java abs_java_samples \ - abs_mono abs_mono_samples - cd "../Bin/${_arch}-Release" - ln NiViewer Sample-NiViewer - - cd '../../../Source/DoxyGen' - mkdir html - doxygen Doxyfile - rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp -} - -package_openni-unstable() { - pkgdesc="Open Natural Interface framework" - depends=("openni$_suf-core") - optdepends=("openni$_suf-docs: programmer documentation") - provides=('openni') - conflicts=('openni') -} - -package_openni-unstable-docs() { - pkgdesc="OpenNI programmer documentation" - arch=('any') - provides=('openni-docs') - conflicts=('openni-docs') - - cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" - install -d "${pkgdir}/usr/share/openni" - cp -r html "${pkgdir}/usr/share/openni" -} - -package_openni-unstable-core() { - pkgdesc="OpenNI core libraries" - depends=('libusb' 'freeglut') - install="openni-core.install" - provides=('openni-core') - conflicts=('openni-core') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - - LIB_FILES=' - libnimCodecs.so - libnimMockNodes.so - libnimRecorder.so - libOpenNI.so - ' - install -d "${pkgdir}/usr/lib" - install -m755 $LIB_FILES "${pkgdir}/usr/lib" - - BIN_FILES='niReg niLicense' - install -d "${pkgdir}/usr/bin" - install -m755 $BIN_FILES "${pkgdir}/usr/bin" - - cd "${srcdir}/${_gitname}-build/Include" - install -d "${pkgdir}/usr/include/ni" - install -m644 *.h "${pkgdir}/usr/include/ni" - cp -r "${_platform}" "${pkgdir}/usr/include/ni" - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Build" - install -d "${pkgdir}/usr/share" - cp -r Common "${pkgdir}/usr/share/common" - - install -d "${pkgdir}/var/lib/ni" -} - -package_openni-unstable-java() { - pkgdesc="OpenNI java wrapper" - depends=("openni$_suf" 'java-environment') - provides=('openni-java') - conflicts=('openni-java') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - - install -d "${pkgdir}/usr/lib" - install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" - - install -d "${pkgdir}/usr/share/openni/java" - install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" -} - -package_openni-unstable-mono() { - pkgdesc="OpenNI mono wrapper" - depends=("openni$_suf" 'mono') - install="openni-mono.install" - provides=('openni-mono') - conflicts=('openni-mono') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - - install -d "${pkgdir}/usr/share/openni/mono" - install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" -} - -# SAMPLES - -_install_sample_source() { - sample=$1 - makefile="Platform/${_os}/Build/Samples/$sample/Makefile" - install -d "${pkgdir}/usr/share/openni/samples" - cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" - install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" -} - -CORE_SAMPLES=' - AudioSample - BackRecorder - CRead - ConvertXToONI - HandTracker - RecordSynthetic - SimpleCreate - UserSelection - Viewer - SimpleRead SimpleViewer UserTracker' -MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' -JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' - -package_openni-unstable-core-samples() { - pkgdesc="OpenNI sample programs" - depends=("openni$_suf-core") - optdepends=('openni-core-samples-source: source code for the samples') - provides=('openni-core-samples') - conflicts=('openni-core-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - install -d "${pkgdir}/usr/bin" - for sample in $CORE_SAMPLES; do - install -m755 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" - done -} -package_openni-unstable-core-samples-source() { - pkgdesc="OpenNI sample programs source code" - depends=("openni$_suf-core") - provides=('openni-core-samples-source') - conflicts=('openni-core-samples-source') - - cd "${srcdir}/${_gitname}-build" - for sample in Viewer $CORE_SAMPLES; do - _install_sample_source Ni$sample - done -} - -package_openni-unstable-java-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-java") - optdepends=("openni$_suf-java-samples-source: source code for the samples") - arch=('any') - provides=('openni-java-samples') - conflicts=('openni-java-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/java" - for sample in $JAVA_SAMPLES; do - install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" - echo "#/bin/sh -java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ -" > "${pkgdir}/usr/bin/niSample-$sample.jar" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" - done -} -package_openni-unstable-java-samples-source() { - pkgdesc="OpenNI java wrapper sample programs source code" - depends=("openni$_suf-java") - provides=('openni-java-samples-source') - conflicts=('openni-java-samples-source') - - cd "${srcdir}/${_gitname}-build" - for sample in $JAVA_SAMPLES; do - _install_sample_source $sample.java - done -} - -package_openni-unstable-mono-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-mono") - optdepends=("openni$_suf-mono-samples-source: source code for the samples") - provides=('openni-mono-samples') - conflicts=('openni-mono-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/mono" - for sample in $MONO_SAMPLES; do - install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" - echo "#/bin/sh -cd /usr/share/openni/mono -mono $sample.net.exe $@ -" > "${pkgdir}/usr/bin/niSample-$sample.net" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" - done -} -package_openni-unstable-mono-samples-source() { - pkgdesc="OpenNI mono wrapper sample programs source code" - depends=("openni$_suf-mono") - provides=('openni-mono-samples-source') - conflicts=('openni-mono-samples-source') - - cd "${srcdir}/${_gitname}-build" - for sample in $MONO_SAMPLES; do - _install_sample_source $sample.net - done -} diff --git a/~lukeshu/openni-unstable/openni-core.install b/~lukeshu/openni-unstable/openni-core.install deleted file mode 100644 index 8470f4512..000000000 --- a/~lukeshu/openni-unstable/openni-core.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" - for module in $MODULES - do - /usr/bin/niReg /usr/lib/$module - done -} - -pre_remove() { - rm /var/lib/ni/modules.xml -} diff --git a/~lukeshu/openni-unstable/openni-mono.install b/~lukeshu/openni-unstable/openni-mono.install deleted file mode 100644 index 72a6fb23d..000000000 --- a/~lukeshu/openni-unstable/openni-mono.install +++ /dev/null @@ -1,7 +0,0 @@ -post_install() { - gacutil -i /usr/share/openni/mono/OpenNI.net.dll -gacdir /usr -} - -post_remove() { - gacutil -u OpenNI.net -gacdir /usr -} diff --git a/~lukeshu/openni/PKGBUILD b/~lukeshu/openni/PKGBUILD deleted file mode 100644 index 2cdc2fd7d..000000000 --- a/~lukeshu/openni/PKGBUILD +++ /dev/null @@ -1,288 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> -# Contributor: bugix -# Contributor: Lubosz Sarnecki <lubosz at gmail> - -# unfortunately we can't use $_suf in function names, but sed makes it ok -_suf='' -pkgname=( - openni$_suf - openni$_suf-docs - - openni$_suf-core - openni$_suf-core-samples - openni$_suf-core-samples-source - - openni$_suf-mono - openni$_suf-mono-samples - openni$_suf-mono-samples-source - - openni$_suf-java - openni$_suf-java-samples - openni$_suf-java-samples-source - ) -pkgver=1.3.3.6 -pkgrel=4 -arch=('i686' 'x86_64') -url="http://www.openni.org/" -license=('GPL') -makedepends=('git' 'doxygen' 'graphviz') -source=() -md5sums=() - -__gitroot="git://github.com/OpenNI/OpenNI.git" -_gitname="openni" -#_gitbranch="unstable" -#_gitbranch="master" -_gitbranch="Stable-$pkgver" - -_os='Linux' -case "${CARCH}" in -'x86_64') _arch=x86;; -'i686') _arch=x86;; -'arm') _arch=Arm;; # untested -*) _arch=UNSUPPORTED_ARCH;; -esac -_platform="${_os}-${_arch}" - -export MAKEFLAGS+=' -j1 ' - -build() { - cd "${srcdir}" - msg "Connecting to GIT server...." - - if [ -d ${_gitname} ] ; then - cd ${_gitname} - git checkout master - git pull origin - msg "The local files are updated." - else - git clone ${__gitroot} ${_gitname} - cd ${_gitname} - fi - git checkout ${_gitbranch} - cd .. - - 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" - - # PATCH - sed -i 's/python /python2 /' "Platform/${_platform}/CreateRedist/RedistMaker" - mv Wrappers/OpenNI.java/src/org/OpenNI/AlternativeView{p,P}ointCapability.java - echo ' -abs_core: $(ALL_MODULES) $(ALL_UTILS) -abs_core_samples: $(CORE_SAMPLES) -abs_java: $(ALL_JAVA_PROJS) -abs_java_samples: $(JAVA_SAMPLES) -abs_mono: $(ALL_MONO_PROJS) -abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) -' >> "Platform/${_platform}/Build/Makefile" - - - # BUILD - cd "Platform/${_platform}/Build" - make -j1 \ - abs_core abs_core_samples \ - abs_java abs_java_samples \ - abs_mono abs_mono_samples || return 1 - - cd '../../../Source/DoxyGen' - mkdir html - doxygen Doxyfile - rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp -} - -package_openni() { - pkgdesc="Open Natural Interface framework" - depends=("openni$_suf-core") - optdepends=("openni$_suf-docs: programmer documentation") - provides=('openni') - conflicts=('openni') -} - -package_openni-docs() { - pkgdesc="OpenNI programmer documentation" - arch=('any') - provides=('openni-docs') - conflicts=('openni-docs') - - cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" - install -d "${pkgdir}/usr/share/openni" - cp -r html "${pkgdir}/usr/share/openni" -} - -package_openni-core() { - pkgdesc="OpenNI core libraries" - depends=('libusb' 'freeglut') - install="openni.install" - provides=('openni-core') - conflicts=('openni-core') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - - LIB_FILES=' - libnimCodecs.so - libnimMockNodes.so - libnimRecorder.so - libOpenNI.so - ' - install -d "${pkgdir}/usr/lib" - install -m755 $LIB_FILES "${pkgdir}/usr/lib" - - BIN_FILES='niReg niLicense' - install -d "${pkgdir}/usr/bin" - install -m755 $BIN_FILES "${pkgdir}/usr/bin" - - cd "${srcdir}/${_gitname}-build/Include" - install -d "${pkgdir}/usr/include/ni" - install -m644 *.h "${pkgdir}/usr/include/ni" - cp -r "${_platform}" "${pkgdir}/usr/include/ni" - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Build" - install -d "${pkgdir}/usr/share" - cp -r Common "${pkgdir}/usr/share/common" -} - -package_openni-java() { - pkgdesc="OpenNI java wrapper" - depends=("openni$_suf" 'java-environment') - provides=('openni-java') - conflicts=('openni-java') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - - install -d "${pkgdir}/usr/lib" - install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" - - install -d "${pkgdir}/usr/share/openni/java" - install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" -} - -package_openni-mono() { - pkgdesc="OpenNI mono wrapper" - depends=("openni$_suf" 'mono') - provides=('openni-mono') - conflicts=('openni-mono') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - - install -d "${pkgdir}/usr/share/openni/mono" - install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" -} - -# SAMPLES - -_install_sample_source() { - sample=$1 - makefile="Platform/${_platform}/Build/Samples/$sample/Makefile" - install -d "${pkgdir}/usr/share/openni/samples" - cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" - install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" -} - -# Leave out NiViewer, it's set up wrong -CORE_SAMPLES=' - AudioSample - BackRecorder - CRead - ConvertXToONI - RecordSynthetic - SimpleCreate - SimpleRead SimpleViewer UserTracker' -MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' -JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' - -package_openni-core-samples() { - pkgdesc="OpenNI sample programs" - depends=("openni$_suf-core") - optdepends=('openni-core-samples-source: source code for the samples') - provides=('openni-core-samples') - conflicts=('openni-core-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - install -d "${pkgdir}/usr/bin" - install -m755 NiViewer "${pkgdir}/usr/bin/niSample-Viewer" - for sample in $CORE_SAMPLES; do - install -m766 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" - done -} -package_openni-core-samples-source() { - pkgdesc="OpenNI sample programs source code" - depends=("openni$_suf-core") - provides=('openni-core-samples-source') - conflicts=('openni-core-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in Viewer $CORE_SAMPLES; do - _install_sample_source Ni$sample - done -} - -package_openni-java-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-java") - optdepends=("openni$_suf-java-samples-source: source code for the samples") - arch=('any') - provides=('openni-java-samples') - conflicts=('openni-java-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/java" - for sample in $JAVA_SAMPLES; do - install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" - echo "#/bin/sh -java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ -" > "${pkgdir}/usr/bin/niSample-$sample.jar" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" - done -} -package_openni-java-samples-source() { - pkgdesc="OpenNI java wrapper sample programs source code" - depends=("openni$_suf-java") - provides=('openni-java-samples-source') - conflicts=('openni-java-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in $JAVA_SAMPLES; do - _install_sample_source $sample.java - done -} - -package_openni-mono-samples() { - pkgdesc="OpenNI java wrapper sample programs" - depends=("openni$_suf-mono") - optdepends=("openni$_suf-mono-samples-source: source code for the samples") - provides=('openni-mono-samples') - conflicts=('openni-mono-samples') - - cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/usr/share/openni/mono" - for sample in $MONO_SAMPLES; do - install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" - echo "#/bin/sh -cd /usr/share/openni/mono -mono $sample.net.exe $@ -" > "${pkgdir}/usr/bin/niSample-$sample.net" - chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" - done -} -package_openni-mono-samples-source() { - pkgdesc="OpenNI mono wrapper sample programs source code" - depends=("openni$_suf-mono") - provides=('openni-mono-samples-source') - conflicts=('openni-mono-samples-source') - options+=('!strip') - - cd "${srcdir}/${_gitname}-build" - for sample in $MONO_SAMPLES; do - _install_sample_source $sample.net - done -} diff --git a/~lukeshu/openni/openni.install b/~lukeshu/openni/openni.install deleted file mode 100644 index 8470f4512..000000000 --- a/~lukeshu/openni/openni.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" - for module in $MODULES - do - /usr/bin/niReg /usr/lib/$module - done -} - -pre_remove() { - rm /var/lib/ni/modules.xml -} |