summaryrefslogtreecommitdiff
path: root/~lukeshu
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-12 23:14:53 +0000
committerroot <root@rshg054.dnsready.net>2011-12-12 23:14:53 +0000
commitcb9c375209c236c16557878a1b864f91de27b88d (patch)
treeb0a7d6c0d887620c16ad1a95c9dfef632cb1b877 /~lukeshu
parent22b0fa480661b6247dabf39059fe629e1d233a9a (diff)
Mon Dec 12 23:14:53 UTC 2011
Diffstat (limited to '~lukeshu')
-rw-r--r--~lukeshu/android-udev/51-android.rules208
-rw-r--r--~lukeshu/android-udev/PKGBUILD22
-rw-r--r--~lukeshu/android-udev/android-udev.install15
-rw-r--r--~lukeshu/cinclude2dot/PKGBUILD27
-rw-r--r--~lukeshu/dasm/PKGBUILD31
-rw-r--r--~lukeshu/kdeutils-ark-unarchiver/PKGBUILD184
-rw-r--r--~lukeshu/kdeutils-ark-unarchiver/add-ark-cliunarchiverplugin.patch235
-rw-r--r--~lukeshu/kdeutils-ark-unarchiver/kdeutils.install11
-rw-r--r--~lukeshu/libfreenect-git/PKGBUILD86
-rw-r--r--~lukeshu/openni-git/PKGBUILD286
-rw-r--r--~lukeshu/openni-git/openni.install11
-rw-r--r--~lukeshu/openni-module-primesensor-git/PKGBUILD65
-rw-r--r--~lukeshu/openni-module-sensorkinect-git/PKGBUILD77
-rw-r--r--~lukeshu/openni-module-sensorkinect-git/sensorkinect.install15
-rw-r--r--~lukeshu/openni-unstable-git/PKGBUILD286
-rw-r--r--~lukeshu/openni-unstable-git/openni.install11
-rw-r--r--~lukeshu/openni-unstable/PKGBUILD287
-rw-r--r--~lukeshu/openni-unstable/openni.install11
-rw-r--r--~lukeshu/openni/PKGBUILD288
-rw-r--r--~lukeshu/openni/openni.install11
-rw-r--r--~lukeshu/pngcrush/LICENSE42
-rw-r--r--~lukeshu/pngcrush/PKGBUILD30
-rw-r--r--~lukeshu/unar/PKGBUILD96
-rw-r--r--~lukeshu/unarchiver/PKGBUILD93
-rw-r--r--~lukeshu/xadmaster/PKGBUILD56
25 files changed, 2484 insertions, 0 deletions
diff --git a/~lukeshu/android-udev/51-android.rules b/~lukeshu/android-udev/51-android.rules
new file mode 100644
index 000000000..c52379309
--- /dev/null
+++ b/~lukeshu/android-udev/51-android.rules
@@ -0,0 +1,208 @@
+# Acer
+SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="adbusers"
+# ICONIA TAB A500
+SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3325", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3325", SYMLINK+="android_fastboot"
+
+# Archos
+SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="adbusers"
+# 43
+SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1417", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1417", SYMLINK+="android_fastboot"
+# 101
+SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1411", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1411", SYMLINK+="android_fastboot"
+
+# Asus
+SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="adbusers"
+
+# Blade
+SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1354", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", SYMLINK+="android_fastboot"
+
+# Dell
+SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="adbusers"
+
+# Foxconn
+SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="adbusers"
+
+# Garmin-Asus
+SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="adbusers"
+
+# Google
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="adbusers"
+# NEXUS S
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e21",
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", SYMLINK+="android_fastboot"
+# Nexus One
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e11",
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+
+# HTC
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="adbusers"
+# ChaCha
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0cb2", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0cb2", SYMLINK+="android_fastboot"
+# Desire (Bravo)
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c87", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# Desire Z
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c91", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c91", SYMLINK+="android_fastboot"
+# Evo Shift
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ca5", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# HD2
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_fastboot"
+# Hero H2000
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0001", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0001", SYMLINK+="android_fastboot"
+# Hero (GSM)
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c99", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# Hero (CDMA)
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c9a", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# Incredible
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c9e", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# Incredible rev 0002
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c8d", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# MyTouch 4G
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c96", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# Slide
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0e03", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# Tatoo
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_fastboot"
+# Vision
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9",
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c91", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
+# Wildfire
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c8b", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c8b", SYMLINK+="android_fastboot"
+
+# Huawei
+SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="adbusers"
+SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1038", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1038", SYMLINK+="android_fastboot"
+
+# K-Touch
+SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666", GROUP="adbusers"
+
+# KT Tech
+SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666", GROUP="adbusers"
+
+# Kyocera
+SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666", GROUP="adbusers"
+
+# Lab126
+SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0666", GROUP="adbusers"
+# Amazon Kindle Fire
+SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0006", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0006", SYMLINK+="android_fastboot"
+
+# Lenevo
+SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="adbusers"
+
+# LG
+SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="adbusers"
+# LG (Swift) GT540
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", SYMLINK+="android_fastboot"
+
+# Motorola
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="adbusers"
+# CLIQ XT/Quench
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2d66"
+# Defy/MB525
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="428c"
+# Droid
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="41db"
+# -- Xoom ID 1
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a8",SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a8",SYMLINK+="android_fastboot"
+# -- Xoom ID 2
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9",SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9",SYMLINK+="android_fastboot"
+
+# NEC
+SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666", GROUP="adbusers"
+
+# Nook
+SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666", GROUP="adbusers"
+
+# Nvidia
+SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666", GROUP="adbusers"
+
+# OTGV
+SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666", GROUP="adbusers"
+
+# Pantech
+SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666", GROUP="adbusers"
+
+# Philips
+SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666", GROUP="adbusers"
+
+# PMC-Sierra
+SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666", GROUP="adbusers"
+
+# Qualcomm
+SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666", GROUP="adbusers"
+
+# SK Telesys
+SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666", GROUP="adbusers"
+
+# Samsung
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="adbusers"
+# Galaxy i5700
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="681c", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="681c", SYMLINK+="android_fastboot"
+# Galaxy i5800
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="681c", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6601", SYMLINK+="android_fastboot"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="68a9", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
+# Galaxy i7500
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6640", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6640", SYMLINK+="android_fastboot"
+# Galaxy S
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6601", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685d", MODE="0666"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="68c3", MODE="0666"
+# Galaxy Tab
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6877", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6877", SYMLINK+="android_fastboot"
+# Galaxy Tab 10.1
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685e", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685e", SYMLINK+="android_fastboot"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
+
+# Sharp
+SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666", GROUP="adbusers"
+
+# Sony Ericsson
+SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="adbusers"
+
+# Toshiba
+SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666", GROUP="adbusers"
+
+# ZTE
+SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="adbusers"
+# Blade
+SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1353",
+SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1351", SYMLINK+="android_adb"
+SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1354", SYMLINK+="android_fastboot"
diff --git a/~lukeshu/android-udev/PKGBUILD b/~lukeshu/android-udev/PKGBUILD
new file mode 100644
index 000000000..dabb611c9
--- /dev/null
+++ b/~lukeshu/android-udev/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer: M0Rf30 (AUR)
+# Contributor: marlock
+
+pkgname=android-udev
+pkgver=0.7
+pkgrel=3.1
+pkgdesc='Udev rules to for Android devices.'
+arch=('any')
+url="http://developer.android.com/guide/developing/device.html"
+license=('unknown')
+source=('51-android.rules')
+depends=('udev' 'libmtp')
+conflicts=('udev-android-rules')
+install='android-udev.install'
+
+package() {
+ install -d $pkgdir/etc/udev/rules.d
+ install -m644 $srcdir/51-android.rules $pkgdir/etc/udev/rules.d/51-android.rules
+}
+
+md5sums=('bfcd8d0e4c5bdeed0973e102a656e1eb')
diff --git a/~lukeshu/android-udev/android-udev.install b/~lukeshu/android-udev/android-udev.install
new file mode 100644
index 000000000..c861f2b70
--- /dev/null
+++ b/~lukeshu/android-udev/android-udev.install
@@ -0,0 +1,15 @@
+post_install() {
+getent group adbusers >> /dev/null || /usr/sbin/groupadd adbusers || return 1
+/bin/cat << EOF
+===> In order to use adb, you have to be in the 'adbusers' group
+===> For that, use: gpasswd -a USERNAME adbusers
+EOF
+}
+
+post_upgrade() {
+post_install
+}
+
+post_remove() {
+getent group adbusers &>/dev/null && /usr/sbin/groupdel adbusers
+}
diff --git a/~lukeshu/cinclude2dot/PKGBUILD b/~lukeshu/cinclude2dot/PKGBUILD
new file mode 100644
index 000000000..2eb43bac2
--- /dev/null
+++ b/~lukeshu/cinclude2dot/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=cinclude2dot
+pkgver=1.1
+pkgrel=1
+pkgdesc="A Perl script which analyses C/C++ code and produces a #include dependency graph."
+arch=('any')
+url="http://flourish.org/cinclude2dot/"
+license=('GPL')
+depends=('perl')
+source=('http://flourish.org/cinclude2dot/cinclude2dot'
+ 'http://flourish.org/cinclude2dot/cinclude2dot.1')
+
+build() {
+ gzip -c cinclude2dot.1 > cinclude2dot.1.gz
+}
+
+package() {
+ cd "$srcdir"
+ install -d "$pkgdir/usr/bin"
+ install -m755 cinclude2dot "$pkgdir/usr/bin"
+ install -d "$pkgdir/usr/share/man/man1"
+ install -m644 cinclude2dot.1.gz "$pkgdir/usr/share/man/man1"
+}
+
+md5sums=('372ca2cba1170ae4e040f7f84b7b98b5'
+ 'bfdc230a26db0c66b238e6380e6badbe')
diff --git a/~lukeshu/dasm/PKGBUILD b/~lukeshu/dasm/PKGBUILD
new file mode 100644
index 000000000..79a7264b4
--- /dev/null
+++ b/~lukeshu/dasm/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
+
+pkgname=dasm
+pkgver=2.20.11
+pkgrel=3
+pkgdesc="An assembler for the 6502, 68HC11, 68705, 6803, HD6303, F8 and 6507 microprocessors"
+arch=('i686' 'x86_64')
+url="http://www.atari2600.org/DASM"
+license=('GPL')
+source=("http://downloads.sourceforge.net/project/$pkgname-dillon/$pkgname-dillon/$pkgver/$pkgname-$pkgver.tar.gz")
+md5sums=('3e67f7b8ac80419d53cc0aaa9a47ab37')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+}
+
+package() {
+ install -Dm 755 "$srcdir/$pkgname-$pkgver/bin/dasm" "$pkgdir/usr/bin/dasm"
+ install -Dm 755 "$srcdir/$pkgname-$pkgver/bin/ftohex" "$pkgdir/usr/bin/ftohex"
+
+ for doc in AUTHORS ChangeLog COPYING CREDITS FUTURE NEWS README README.ANDREW "doc/dasm.txt" "doc/ftohex.txt"; do
+ install -Dm 644 "$srcdir/$pkgname-$pkgver/$doc" "$pkgdir/usr/share/doc/dasm/${doc/*\/}"
+ done
+
+ mkdir -p "$pkgdir/usr/share/dasm"
+ cp -R "$srcdir/$pkgname-$pkgver"/{machines,test} "$pkgdir/usr/share/dasm"
+
+ chmod 755 "$pkgdir/usr/share"/{dasm,dasm/machines,dasm/machines/atari2600,dasm/machines/channel-f,dasm/test}
+ chmod 644 "$pkgdir/usr/share/dasm"/{machines/atari2600,machines/channel-f,test}/*
+}
diff --git a/~lukeshu/kdeutils-ark-unarchiver/PKGBUILD b/~lukeshu/kdeutils-ark-unarchiver/PKGBUILD
new file mode 100644
index 000000000..b016b15bf
--- /dev/null
+++ b/~lukeshu/kdeutils-ark-unarchiver/PKGBUILD
@@ -0,0 +1,184 @@
+# $Id: PKGBUILD 141878 2011-11-02 18:15:53Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgbase=kdeutils
+pkgname='kdeutils-ark-unarchiver'
+pkgver=4.7.3
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://www.kde.org'
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde' 'kdeutils')
+makedepends=('pkgconfig' 'cmake' 'automoc4' 'kdebase-lib' 'kdebase-workspace'
+ 'kdebindings-python' 'system-config-printer-common' 'libarchive' 'qimageblitz'
+ 'qjson')
+source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2"
+ 'add-ark-cliunarchiverplugin.patch')
+sha1sums=('23fc9823647152d5d8cc250a55402c8930db4059'
+ '134c0ff9be6ffccd896bd590182c21d117f07991')
+
+build() {
+ cd "${srcdir}"/${pkgbase}-${pkgver}
+
+ patch -p0 -i "${srcdir}"/add-ark-cliunarchiverplugin.patch
+
+ # Use Python2
+ sed -i 's|/usr/bin/python|/usr/bin/python2|' \
+ kcharselect/kcharselect-generate-datafile.py \
+ superkaramba/examples/richtext/rtext.py
+ sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \
+ printer-applet/{authconn,debug,monitor,printer-applet,statereason}.py
+
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPYTHON_EXECUTABLE=/usr/bin/python2
+ make
+}
+
+package_kdeutils-ark-unarchiver() {
+ pkgdesc='Archiving Tool'
+ depends=('kdebase-runtime' 'kdebase-lib' 'libarchive')
+ optdepends=('p7zip' 'zip' 'unzip' 'unrar' 'unarchiver')
+ provides=('kdeutils-ark')
+ url="http://kde.org/applications/utilities/ark/"
+ cd $srcdir/build/ark
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/ark/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-filelight() {
+ pkgdesc='View disk usage information'
+ depends=('kdebase-runtime' 'qimageblitz')
+ replaces=('filelight')
+ conflicts=('filelight')
+ install='kdeutils.install'
+ url="http://methylblue.com/filelight/"
+ cd $srcdir/build/filelight
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/filelight/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-kcalc() {
+ pkgdesc='Scientific Calculator'
+ depends=('kdebase-runtime')
+ url="http://kde.org/applications/utilities/kcalc/"
+ cd $srcdir/build/kcalc
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/kcalc/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-kcharselect() {
+ pkgdesc='Character Selector'
+ depends=('kdebase-runtime')
+ url="http://kde.org/applications/utilities/kcharselect/"
+ cd $srcdir/build/kcharselect
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/kcharselect/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-kdf() {
+ pkgdesc='View Disk Usage'
+ depends=('kdebase-runtime')
+ url="http://kde.org/applications/system/kdiskfree/"
+ install='kdeutils.install'
+ cd $srcdir/build/kdf
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/kdf/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-kfloppy() {
+ pkgdesc='Floppy Formatter'
+ depends=('kdebase-runtime')
+ url="http://kde.org/applications/utilities/kfloppy/"
+ install='kdeutils.install'
+ cd $srcdir/build/kfloppy
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/kfloppy/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-kgpg() {
+ pkgdesc='A GnuPG frontend'
+ depends=('kdepim-runtime' 'kde-agent')
+ url="http://kde.org/applications/utilities/kgpg"
+ install='kdeutils.install'
+ cd $srcdir/build/kgpg
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/kgpg/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-kremotecontrol() {
+ pkgdesc='Configure your remote controls for use with applications'
+ replaces=('kdeutils-kdelirc')
+ conflicts=('kdeutils-kdelirc')
+ depends=('kdebase-workspace')
+ url="http://kde.org/applications/utilities/kremotecontrol"
+ install='kdeutils.install'
+ cd $srcdir/build/kremotecontrol
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/kremotecontrol/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-ktimer() {
+ pkgdesc='Countdown Launcher'
+ depends=('kdebase-runtime')
+ url="http://kde.org/applications/utilities/ktimer"
+ install='kdeutils.install'
+ cd $srcdir/build/ktimer
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/ktimer/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-kwallet() {
+ pkgdesc='Wallet Management Tool'
+ depends=('kdebase-runtime')
+ url="http://kde.org/applications/system/kwalletmanager/"
+ install='kdeutils.install'
+ cd $srcdir/build/kwallet
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/kwallet/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-printer-applet() {
+ pkgdesc='System tray icon for managing print jobs'
+ depends=('kdebase-runtime' 'kdebindings-python' 'system-config-printer-common')
+ url="http://kde.org/applications/system/printerapplet/"
+ cd $srcdir/build/printer-applet
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/printer-applet/doc
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-superkaramba() {
+ pkgdesc='An engine for cool desktop eyecandy'
+ depends=('kdebase-runtime' 'kdebindings-python' 'qimageblitz')
+ url="http://kde.org/applications/utilities/superkaramba"
+ install='kdeutils.install'
+ cd $srcdir/build/superkaramba
+ make DESTDIR=$pkgdir install
+}
+
+package_kdeutils-sweeper() {
+ pkgdesc='System Cleaner'
+ depends=('kdebase-runtime')
+ url="http://kde.org/applications/utilities/sweeper/"
+ cd $srcdir/build/sweeper
+ make DESTDIR=$pkgdir install
+ cd $srcdir/build/sweeper/doc
+ make DESTDIR=$pkgdir install
+}
diff --git a/~lukeshu/kdeutils-ark-unarchiver/add-ark-cliunarchiverplugin.patch b/~lukeshu/kdeutils-ark-unarchiver/add-ark-cliunarchiverplugin.patch
new file mode 100644
index 000000000..039d725b4
--- /dev/null
+++ b/~lukeshu/kdeutils-ark-unarchiver/add-ark-cliunarchiverplugin.patch
@@ -0,0 +1,235 @@
+Index: ark/plugins/CMakeLists.txt
+===================================================================
+--- ark/plugins/CMakeLists.txt (revision 1237729)
++++ ark/plugins/CMakeLists.txt (working copy)
+@@ -14,6 +14,7 @@
+ endif (LIBARCHIVE_FOUND)
+
+ add_subdirectory( clirarplugin )
++add_subdirectory( cliunarchiverplugin )
+ add_subdirectory( cli7zplugin )
+ add_subdirectory( clizipplugin )
+ add_subdirectory( libsinglefileplugin )
+Index: ark/plugins/cliunarchiverplugin/kerfuffle_cliunarchiver.desktop
+===================================================================
+--- ark/plugins/cliunarchiverplugin/kerfuffle_cliunarchiver.desktop (revision 0)
++++ ark/plugins/cliunarchiverplugin/kerfuffle_cliunarchiver.desktop (revision 0)
+@@ -0,0 +1,15 @@
++[Desktop Entry]
++Type=Service
++X-KDE-ServiceTypes=Kerfuffle/Plugin
++X-KDE-Library=kerfuffle_cliunarchiver
++X-KDE-PluginInfo-Author=Luke Shumaker
++X-KDE-PluginInfo-Email=lukeshu@sbcglobal.net
++X-KDE-PluginInfo-Name= kerfuffle_cliunarchiver
++X-KDE-PluginInfo-Version=0.0.1
++X-KDE-PluginInfo-Website=http://www.kde.org
++X-KDE-PluginInfo-License=GPLv2+
++X-KDE-Priority=150
++X-KDE-Kerfuffle-APIRevision=1
++X-KDE-Kerfuffle-ReadWrite=true
++Name=The Unarchiver plugin
++MimeType=application/x-rar;
+Index: ark/plugins/cliunarchiverplugin/cliplugin.cpp
+===================================================================
+--- ark/plugins/cliunarchiverplugin/cliplugin.cpp (revision 0)
++++ ark/plugins/cliunarchiverplugin/cliplugin.cpp (revision 0)
+@@ -0,0 +1,172 @@
++/*
++ * ark -- archiver for the KDE project
++ *
++ * Copyright (C) 2011 Luke Shumaker <lukeshu@sbcglobal.net>
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version 2
++ * of the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++ *
++ */
++
++#include "kerfuffle/cliinterface.h"
++#include "kerfuffle/kerfuffle_export.h"
++
++#include <KDebug>
++
++#include <QDateTime>
++#include <QDir>
++#include <QRegExp>
++#include <QString>
++#include <QStringList>
++
++using namespace Kerfuffle;
++
++class CliPlugin: public CliInterface
++{
++public:
++ explicit CliPlugin(QObject *parent, const QVariantList & args)
++ : CliInterface(parent, args) {
++ m_indentLevel = 0;
++ }
++
++ virtual ~CliPlugin() {
++ }
++
++ virtual ParameterList parameterList() const {
++ static ParameterList p;
++ if (p.isEmpty()) {
++ /* As I'm writing this, I'm noticing that unar is quite limited.
++ * The following limitations are used to tag unused bits of code:
++ * 01 - cannot extract just one file from the archive
++ * 02 - overwrites existing files without prompt
++ * 03 - cannot edit archives
++ * 04 - if a wrong password is given, it fails (usually segfaults)
++ * without telling what went wrong
++ */
++
++ ///////////////[ COMMON ]/////////////
++
++ p[CaptureProgress] = false;
++ //p[PasswordPromptPattern] =
++
++ ///////////////[ LIST ]/////////////
++
++ p[ListProgram] = "lsar";
++ p[ListArgs] = QStringList() << "-json" << "$Archive";
++
++ ///////////////[ EXTRACT ]/////////////
++
++ p[ExtractProgram] = "unar";
++ p[ExtractArgs] = QStringList() << "$PasswordSwitch" << "$Archive";
++ //p[NoTrailingSlashes] = // limitation: 01
++ //p[PreservePathSwitch] = // limitation: 01
++ //p[NoTrailingSlashes] = // limitation: 01
++ //p[RootNodeSwitch] = // limitation: 01
++ p[PasswordSwitch] = QStringList() << "-p $Password";
++ p[FileExistsExpression] = "some regexp that nothing will ever _ever_ match"; // limitation: 02
++ //p[FileExistsMode] = // limitation: 02
++ //p[FileExistsInput] = // limitation: 02
++
++ ///////////////[ DELETE ]/////////////
++
++ p[DeleteProgram] = "x-fakeprogram"; // limitation: 03
++ //p[DeleteArgs] = // limitation: 03
++
++ ///////////////[ ADD ]/////////////
++
++ p[AddProgram] = "x-fakeprogram"; // limitation: 03
++ //p[AddArgs] = // limitation: 03
++
++ ///////////////[ ERRORS ]/////////////
++
++ p[ExtractionFailedPatterns] = QStringList()
++ << "Failed! \\((.+)\\)$"
++ << "Segmentation fault$"; // Why is this so common!?
++
++ p[WrongPasswordPatterns] = QStringList()
++ //<< "Failed!" // limitation: 04
++ << "\\.\\.\\. This archive requires a password to unpack\\. Use the -p option to provide one\\.$";
++ }
++ return p;
++ }
++
++ QString m_entryFilename, m_internalId;
++ ArchiveEntry m_currentEntry;
++ int m_indentLevel;
++
++ bool readListLine(const QString &line) {
++ /* lsar will give us JSON output. However, we actually parse based on
++ * the indentation. Ugly, I know, but
++ * 1. It's easier
++ * 2. lsar's JSON is invalid JSON, so actual parsers bork.
++ */
++
++ int spaces;
++ for(spaces=0;(spaces<line.size())&&(line[spaces]==QChar(' '));spaces++){}
++ // Since this is so ugly anyway, I'm not even going to check to
++ // make sure that spaces is even. I mean, what would I do about it?
++ int m_newIndentLevel = spaces/2;
++
++ if (m_newIndentLevel>m_indentLevel) {
++ if (m_newIndentLevel==3) {
++ m_currentEntry.clear();
++ m_currentEntry[IsDirectory] = false;
++ }
++ } else if (m_newIndentLevel<m_indentLevel) {
++ if ( (m_newIndentLevel<3) && (m_indentLevel>=3) ) {
++ EntryMetaDataType index = IsDirectory;
++ if (m_currentEntry[index].toBool()) {
++ m_currentEntry[FileName].toString().append(QString("/"));
++ }
++ kDebug() << "Added entry:" << m_currentEntry;
++ entry(m_currentEntry);
++ }
++ }
++ m_indentLevel = m_newIndentLevel;
++
++ QRegExp rx("^\\s*\"([^\"]*)\": (.*),$");
++ if (rx.indexIn(line) >= 0) {
++ QRegExp rx_unquote("^\"(.*)\"$");
++ QString key = rx.cap(1);
++ QString value = rx.cap(2);
++
++ if (false) {
++ } else if (key=="XADFileName") {
++ rx_unquote.indexIn(value);
++ m_currentEntry[FileName] = m_currentEntry[InternalID] = rx_unquote.cap(1);
++ } else if (key=="XADFileSize") {
++ m_currentEntry[Size] = value.toInt();
++ } else if (key=="XADCompressedSize") {
++ m_currentEntry[CompressedSize] = value.toInt();
++ } else if (key=="XADLastModificationDate") {
++ QDateTime ts(QDate::fromString(value, "\"YYYY-MM-DD hh:mm:ss"));
++ m_currentEntry[Timestamp] = ts;
++ } else if (key=="XADIsDirectory") {
++ m_currentEntry[IsDirectory] = (value=="1");
++ } else if (key=="RARCRC32") {
++ m_currentEntry[CRC] = value.toInt();
++ } else if (key=="RARCompressionMethod") {
++ m_currentEntry[Method] = value.toInt();
++ } else if (key=="Encrypted") {
++ m_currentEntry[IsPasswordProtected] = (value.toInt() != 0);
++ }
++ // TODO: add RAR version. ([Version])
++ }
++
++ return true;
++ }
++};
++
++KERFUFFLE_EXPORT_PLUGIN(CliPlugin)
++
+Index: ark/plugins/cliunarchiverplugin/CMakeLists.txt
+===================================================================
+--- ark/plugins/cliunarchiverplugin/CMakeLists.txt (revision 0)
++++ ark/plugins/cliunarchiverplugin/CMakeLists.txt (revision 0)
+@@ -0,0 +1,21 @@
++
++include_directories(
++ ${CMAKE_CURRENT_SOURCE_DIR}/../..
++ ${CMAKE_CURRENT_BINARY_DIR}/../..
++ )
++
++########### next target ###############
++
++set(kerfuffle_cliunarchiver_SRCS cliplugin.cpp)
++
++kde4_add_plugin(kerfuffle_cliunarchiver ${kerfuffle_cliunarchiver_SRCS})
++
++target_link_libraries(kerfuffle_cliunarchiver ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} kerfuffle )
++
++
++
++########### install files ###############
++
++install(TARGETS kerfuffle_cliunarchiver DESTINATION ${PLUGIN_INSTALL_DIR} )
++install( FILES kerfuffle_cliunarchiver.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
++
diff --git a/~lukeshu/kdeutils-ark-unarchiver/kdeutils.install b/~lukeshu/kdeutils-ark-unarchiver/kdeutils.install
new file mode 100644
index 000000000..e70c054ec
--- /dev/null
+++ b/~lukeshu/kdeutils-ark-unarchiver/kdeutils.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/~lukeshu/libfreenect-git/PKGBUILD b/~lukeshu/libfreenect-git/PKGBUILD
new file mode 100644
index 000000000..edc9e7483
--- /dev/null
+++ b/~lukeshu/libfreenect-git/PKGBUILD
@@ -0,0 +1,86 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
+
+# I am not giving libfreenect nearly the attention it deserves.
+# There are a lot of options for it that I'm ignoring.
+# Right now I'm focussing more on sensorkinect.
+# Patches welcome!
+
+pkgname=("libfreenect-git" 'kinect-udev-git')
+pkgver=20111211
+pkgrel=1
+pkgdesc="OpenKinect drivers and libraries for the Xbox Kinect device"
+arch=('i686' 'x86_64')
+url="http://openkinect.org"
+license=('GPL')
+makedepends=('cmake' 'git' 'python2')
+source=()
+md5sums=()
+
+_gitroot="git://github.com/OpenKinect/libfreenect.git"
+_gitname=libfreenect
+
+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 "$_gitroot" "$_gitname"
+ fi
+
+ 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 HERE
+ #
+
+ # Install "libfreenect.hpp" to "/usr/include/libfreenect"
+ sed 's/DESTINATION include/DESTINATION include\/${projectNameLower}/g' -i "wrappers/cpp/CMakeLists.txt"
+
+ export DYLD_FRAMEWORK_PATH=/usr/lib/python2.7/site-packages
+
+ mkdir build
+ cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_REDIST_PACKAGE=ON \
+ -DLIB_SUFFIX="" \
+ -DBUILD_AUDIO=OFF \
+ -DBUILD_PYTHON=OFF \
+ -DPYTHON_EXECUTABLE="`which python2`" \
+ ..
+ make
+}
+
+package_libfreenect-git() {
+ depends=('libusb' 'freeglut' 'libxmu' 'kinect-udev')
+ provides=(libfreenect)
+ conflicts=(libfreenect)
+
+ # Make install
+ cd "${srcdir}/${_gitname}-build/build"
+ make DESTDIR="${pkgdir}" install
+
+ # Patch include files
+ sed 's/<libfreenect.h>/<libfreenect\/libfreenect.h>/g' -i "${pkgdir}/usr/include/libfreenect/libfreenect.hpp"
+}
+
+package_kinect-udev-git() {
+ pkgdesc="Udev rules for the Xbox Kinect device"
+ depends=('udev')
+ provides=(kinect-udev)
+ conflicts=(kinect-udev)
+
+ # Install udev rules
+ cd "${srcdir}/${_gitname}-build/"
+ install -d "${pkgdir}/etc/udev/rules.d"
+ install -m644 platform/linux/udev/51-kinect.rules "${pkgdir}/etc/udev/rules.d"
+} \ No newline at end of file
diff --git a/~lukeshu/openni-git/PKGBUILD b/~lukeshu/openni-git/PKGBUILD
new file mode 100644
index 000000000..7ac6abb87
--- /dev/null
+++ b/~lukeshu/openni-git/PKGBUILD
@@ -0,0 +1,286 @@
+# 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
new file mode 100644
index 000000000..8470f4512
--- /dev/null
+++ b/~lukeshu/openni-git/openni.install
@@ -0,0 +1,11 @@
+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
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
+}
diff --git a/~lukeshu/openni-module-sensorkinect-git/PKGBUILD b/~lukeshu/openni-module-sensorkinect-git/PKGBUILD
new file mode 100644
index 000000000..2a2abbdc5
--- /dev/null
+++ b/~lukeshu/openni-module-sensorkinect-git/PKGBUILD
@@ -0,0 +1,77 @@
+# 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
new file mode 100644
index 000000000..d62d263d1
--- /dev/null
+++ b/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install
@@ -0,0 +1,15 @@
+#!/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
new file mode 100644
index 000000000..07f276b02
--- /dev/null
+++ b/~lukeshu/openni-unstable-git/PKGBUILD
@@ -0,0 +1,286 @@
+# 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
new file mode 100644
index 000000000..8470f4512
--- /dev/null
+++ b/~lukeshu/openni-unstable-git/openni.install
@@ -0,0 +1,11 @@
+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
new file mode 100644
index 000000000..32020d726
--- /dev/null
+++ b/~lukeshu/openni-unstable/PKGBUILD
@@ -0,0 +1,287 @@
+# 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.3.4.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="Unstable-$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/${_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() {
+ 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.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"
+}
+
+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')
+ 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"
+}
+
+# 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-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"
+ 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-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-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')
+ options+=('!strip')
+
+ 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')
+ options+=('!strip')
+
+ cd "${srcdir}/${_gitname}-build"
+ for sample in $MONO_SAMPLES; do
+ _install_sample_source $sample.net
+ done
+}
diff --git a/~lukeshu/openni-unstable/openni.install b/~lukeshu/openni-unstable/openni.install
new file mode 100644
index 000000000..8470f4512
--- /dev/null
+++ b/~lukeshu/openni-unstable/openni.install
@@ -0,0 +1,11 @@
+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/PKGBUILD b/~lukeshu/openni/PKGBUILD
new file mode 100644
index 000000000..2cdc2fd7d
--- /dev/null
+++ b/~lukeshu/openni/PKGBUILD
@@ -0,0 +1,288 @@
+# 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
new file mode 100644
index 000000000..8470f4512
--- /dev/null
+++ b/~lukeshu/openni/openni.install
@@ -0,0 +1,11 @@
+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/pngcrush/LICENSE b/~lukeshu/pngcrush/LICENSE
new file mode 100644
index 000000000..3412dd04e
--- /dev/null
+++ b/~lukeshu/pngcrush/LICENSE
@@ -0,0 +1,42 @@
+
+NOTICES
+
+If you have modified this source, you may insert additional notices
+immediately after this sentence.
+
+COPYRIGHT:
+
+Copyright (C) 1998-2002,2006-2009 Glenn Randers-Pehrson
+ (glennrp at users.sf.net)
+Copyright (C) 2005 Greg Roelofs
+
+DISCLAIMERS:
+
+The pngcrush computer program is supplied "AS IS". The Author disclaims all
+warranties, expressed or implied, including, without limitation, the
+warranties of merchantability and of fitness for any purpose. The
+Author assumes no liability for direct, indirect, incidental, special,
+exemplary, or consequential damages, which may result from the use of
+the computer program, even if advised of the possibility of such damage.
+There is no warranty against interference with your enjoyment of the
+computer program or against infringement. There is no warranty that my
+efforts or the computer program will fulfill any of your particular purposes
+or needs. This computer program is provided with all faults, and the entire
+risk of satisfactory quality, performance, accuracy, and effort is with
+the user.
+
+LICENSE:
+
+Permission is hereby irrevocably granted to everyone to use, copy, modify,
+and distribute this source code, or portions hereof, or executable programs
+compiled from it, for any purpose, without payment of any fee, subject to
+the following restrictions:
+
+1. The origin of this source code must not be misrepresented.
+
+2. Altered versions must be plainly marked as such and must not be
+ misrepresented as being the original source.
+
+3. This Copyright notice, disclaimer, and license may not be removed
+ or altered from any source or altered source distribution.
+
diff --git a/~lukeshu/pngcrush/PKGBUILD b/~lukeshu/pngcrush/PKGBUILD
new file mode 100644
index 000000000..e3b477086
--- /dev/null
+++ b/~lukeshu/pngcrush/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# Contributer: HuntXu <huntxu@live.cn>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=pngcrush
+pkgver=1.7.15
+pkgrel=1
+pkgdesc="A tool for optimizing the compression of PNG files"
+arch=('i686' 'x86_64')
+url="http://pmt.sourceforge.net/"
+license=('custom')
+depends=('glibc')
+source=(http://downloads.sourceforge.net/pmt/$pkgname-$pkgver.tar.xz
+ LICENSE)
+md5sums=('c21cf76d187dadd4c137e894dcb593bf'
+ 'e6446a786d939c98fcada57f9ae6de1f')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ # fix for better compression
+ sed -i 's|TOO_FAR 4096|TOO_FAR 32767|' deflate.c
+ make
+}
+
+package() {
+ install -Dm755 "$srcdir"/$pkgname-$pkgver/$pkgname \
+ "$pkgdir"/usr/bin/$pkgname
+ install -Dm644 $srcdir/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/~lukeshu/unar/PKGBUILD b/~lukeshu/unar/PKGBUILD
new file mode 100644
index 000000000..4bb523a89
--- /dev/null
+++ b/~lukeshu/unar/PKGBUILD
@@ -0,0 +1,96 @@
+# Contributor: Cedric Girard <girard.cedric@gmail.com>
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=(
+ 'unar'
+ 'libuniversaldetector'
+ 'libxadmaster'
+ 'libxadmaster-libxad')
+pkgver=0.99
+pkgrel=1
+arch=('x86_64' 'i686')
+url="http://wakaba.c3.cx/s/apps/unarchiver.html"
+license=('LGPL2.1')
+depends=('gnustep-base-libre>=1.23.0' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib')
+conflicts=('gnustep-base>=1.24')
+makedepends=('gcc-objc')
+source=("https://theunarchiver.googlecode.com/files/unar${pkgver}_src.zip")
+
+build() {
+ cd "$srcdir/XADMaster"
+
+ # remove some OS X object files that were accidentally included in the dist
+ # (we've all done it)
+ find "$srcdir" -name '*.o' -delete
+
+ # build everything
+ . /usr/share/GNUstep/Makefiles/GNUstep.sh
+ make -f Makefile.linux
+
+ # make libxad into a lib file
+ cd libxad
+ rm -f libxad.a
+ ar rcs libxad.a all.o clients.o unix/emulation.o unix/init.o
+
+ # compress man pages
+ cd "$srcdir/Extra"
+ gzip -c unar.1 > unar.1.gz
+ gzip -c lsar.1 > lsar.1.gz
+}
+
+package_unar() {
+ pkgdesc="The unar/lsar command line wrappers around libXADMaster"
+
+ cd "$srcdir/XADMaster"
+ install -d "$pkgdir/usr/bin"
+ install -m755 unar lsar "$pkgdir/usr/bin"
+
+ cd "$srcdir/Extra"
+ install -d "$pkgdir/usr/share/man/man1"
+ install unar.1.gz lsar.1.gz "$pkgdir/usr/share/man/man1"
+}
+
+package_libuniversaldetector() {
+ pkgdesc="Some fancy-schmancy Objective-C library that detects things?"
+
+ cd "$srcdir/UniversalDetector"
+ install -d "$pkgdir/usr/lib/"
+ install libUniversalDetector.a "$pkgdir/usr/lib/"
+ install -d "$pkgdir/usr/include/"
+ install UniversalDetector.h "$pkgdir/usr/include/"
+}
+
+package_libxadmaster() {
+ pkgdesc="An Objective-C library built around libxad adding support for other formats"
+ depends+=('libuniversaldetector')
+
+ header_files='
+ CommandLineCommon.h
+ NSStringPrinting.h
+ XADArchive.h
+ XADRegex.h
+ XADSimpleUnarchiver.h
+ XADUnarchiver.h
+ '
+
+ cd "$srcdir/XADMaster"
+ install -d "$pkgdir/usr/lib"
+ install libXADMaster.a "$pkgdir/usr/lib"
+ install -d "$pkgdir/usr/include/XADMaster"
+ install $header_files "$pkgdir/usr/include/XADMaster"
+}
+
+package_libxadmaster-libxad() {
+ pkgdesc="A fork of libxad, the port of the Amiga 'xadmaster.library' to *NIX"
+ depends=('glibc')
+ provides=('libxad')
+ conflicts=('libxad')
+
+ cd "$srcdir/XADMaster/libxad"
+ install -d "$pkgdir/usr/lib"
+ install libxad.a "$pkgdir/usr/lib"
+ install -d "$pkgdir/usr/include/libxad"
+ install include/* "$pkgdir/usr/include/libxad"
+}
+
+md5sums=('2169b920cf62956e495cfd5e0780a41e')
diff --git a/~lukeshu/unarchiver/PKGBUILD b/~lukeshu/unarchiver/PKGBUILD
new file mode 100644
index 000000000..0df133a6c
--- /dev/null
+++ b/~lukeshu/unarchiver/PKGBUILD
@@ -0,0 +1,93 @@
+# Contributor: Cedric Girard <girard.cedric@gmail.com>
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=(
+ 'unarchiver'
+ 'unar'
+ 'libuniversaldetector'
+ 'libxadmaster'
+ 'libxadmaster-libxad')
+pkgver=2.7.1
+pkgrel=4
+arch=('x86_64' 'i686')
+url="http://wakaba.c3.cx/s/apps/unarchiver.html"
+license=('LGPL2.1')
+depends=('gnustep-base-libre>=1.23.0' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib')
+conflicts=('gnustep-base>=1.24')
+makedepends=('gcc-objc')
+source=("http://theunarchiver.googlecode.com/files/TheUnarchiver${pkgver}_src.zip")
+
+build() {
+ cd "$srcdir/The Unarchiver/XADMaster"
+
+ # build everything
+ . /usr/share/GNUstep/Makefiles/GNUstep.sh
+ make -f Makefile.linux
+
+ # make libxad into a lib file
+ cd libxad
+ rm -f libxad.a
+ ar rcs libxad.a all.o clients.o unix/emulation.o unix/init.o
+}
+
+package_unarchiver() {
+ pkgdesc="An Objective-C application for uncompressing archive files"
+ arch=('any')
+ depends=(${depends[@]} 'unar>=0.4')
+}
+
+package_unar() {
+ pkgver=0.4
+ pkgdesc="The unar/lsar command line wrappers around libXADMaster"
+
+ cd "$srcdir/The Unarchiver/XADMaster"
+ install -d "$pkgdir/usr/bin"
+ install -m755 unar lsar "$pkgdir/usr/bin"
+}
+
+package_libuniversaldetector() {
+ pkgver=0.4
+ pkgdesc="Some fancy-schmancy Objective-C library that detects things?"
+
+ cd "$srcdir/The Unarchiver/UniversalDetector"
+ install -d "$pkgdir/usr/lib"
+ install libUniversalDetector.a "$pkgdir/usr/lib"
+ install -d "$pkgdir/usr/include"
+ install UniversalDetector.h "$pkgdir/usr/include"
+}
+
+package_libxadmaster() {
+ pkgver=0.4
+ pkgdesc="An Objective-C library built around libxad adding support for other formats"
+ depends+=('libuniversaldetector')
+
+ header_files='
+ CommandLineCommon.h
+ NSStringPrinting.h
+ XADArchive.h
+ XADRegex.h
+ XADUnarchiver.h
+ '
+
+ cd "$srcdir/The Unarchiver/XADMaster"
+ install -d "$pkgdir/usr/lib"
+ install libXADMaster.a "$pkgdir/usr/lib"
+ install -d "$pkgdir/usr/include/XADMaster"
+ install $header_files "$pkgdir/usr/include/XADMaster"
+}
+
+package_libxadmaster-libxad() {
+ pkgver=0.4 # forked from 13.0.2005.06.23 (commit 1.24)
+ pkgdesc="A fork of libxad, the port of the Amiga 'xadmaster.library' to *NIX"
+ depends=('glibc')
+ provides=('libxad')
+ conflicts=('libxad')
+
+ cd "$srcdir/The Unarchiver/XADMaster/libxad"
+ install -d "$pkgdir/usr/lib"
+ install libxad.a "$pkgdir/usr/lib"
+ install -d "$pkgdir/usr/include/libxad"
+ install include/* "$pkgdir/usr/include/libxad"
+}
+
+md5sums=('498ea1c984d5783322e070a71922b422')
diff --git a/~lukeshu/xadmaster/PKGBUILD b/~lukeshu/xadmaster/PKGBUILD
new file mode 100644
index 000000000..8f358aae6
--- /dev/null
+++ b/~lukeshu/xadmaster/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# NOTE: This currently does not build.
+
+pkgname=xadmaster
+pkgver=13.0.2006.06.21
+pkgrel=1
+pkgdesc="The port of the Amiga 'xadmaster.library' to *NIX"
+arch=('i686' 'x86_64')
+url="http://www.dstoecker.eu/xadmaster.html"
+license=('LGPL2.1')
+groups=()
+depends=('glibc')
+makedepends=('cvs')
+provides=('libxad')
+conflicts=('libxad')
+replaces=()
+backup=()
+options=()
+install=
+source=()
+noextract=()
+md5sums=()
+
+_cvsroot=:pserver:anonymous@libxad.cvs.sourceforge.net:/cvsroot/libxad
+_cvsmod=libxad
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
+
+ if [[ -d "$_cvsmod/CVS" ]]; then
+ cd "$_cvsmod"
+ cvs -z3 update -d
+ else
+ cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
+ cd "$_cvsmod"
+ fi
+
+ msg "CVS checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_cvsmod-build"
+ cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
+ cd "$srcdir/$_cvsmod-build"
+
+ # BUILD
+ cd portable
+ autoconf # FIXME: On my system this fails, I don't know what to do
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$_cvsmod-build"
+ make DESTDIR="$pkgdir/" install
+}