summaryrefslogtreecommitdiff
path: root/frc-bin
diff options
context:
space:
mode:
Diffstat (limited to 'frc-bin')
-rw-r--r--frc-bin/javacpp/PKGBUILD17
-rw-r--r--frc-bin/javacv/PKGBUILD44
-rw-r--r--frc-bin/smartdashboard-client/PKGBUILD25
-rw-r--r--frc-bin/smartdashboard-client/smartdashboard.sh9
4 files changed, 95 insertions, 0 deletions
diff --git a/frc-bin/javacpp/PKGBUILD b/frc-bin/javacpp/PKGBUILD
new file mode 100644
index 0000000..ca1e2eb
--- /dev/null
+++ b/frc-bin/javacpp/PKGBUILD
@@ -0,0 +1,17 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=javacpp
+pkgver=20120108
+pkgrel=1
+pkgdesc='Efficient access to native C++ inside Java'
+arch=(any)
+url=https://code.google.com/p/javacpp/
+license=(GPL2)
+source=("https://javacpp.googlecode.com/files/javacpp-bin-$pkgver.zip")
+
+package() {
+ cd "$srcdir/$pkgname-bin"
+ install -m644 -D javacpp.jar "$pkgdir/usr/share/java/javacpp.jar"
+}
+
+sha1sums=(e6d264c13a0ab3a17274f6b9ddfdad9cdc62d199)
diff --git a/frc-bin/javacv/PKGBUILD b/frc-bin/javacv/PKGBUILD
new file mode 100644
index 0000000..ced0de4
--- /dev/null
+++ b/frc-bin/javacv/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+_pkgname=javacv
+pkgname=($_pkgname $_pkgname-samples)
+pkgver=20120108
+pkgrel=1
+pkgdesc='Java wrappers to commonly used libraries in the field of computer vision'
+arch=(i686 x86_64)
+url=https://code.google.com/p/javacv/
+license=(GPL2)
+source=("https://javacv.googlecode.com/files/javacv-bin-$pkgver.zip")
+
+_os=linux
+case "${CARCH}" in
+ 'x86_64') _arch=x86_64;;
+ 'i686') _arch=x86;;
+ #'arm') _arch=arm;; # _os=android
+ *) _arch=UNSUPPORTED_ARCH;;
+esac
+
+package_javacv() {
+ depends=(opencv=2.3.1 javacpp=20120108)
+ optdepends=(ffmpeg libdc1394=2.1 libfreenect android-sdk jocl jogl)
+
+ cd "$srcdir/$_pkgname-bin"
+ install -d "$pkgdir/usr/share/java/javacv"
+ install -m644 javacv.jar "$pkgdir/usr/share/java/javacv"
+ install -m644 javacv-$_os-$_arch.jar "$pkgdir/usr/share/java/javacv"
+ cd "$pkgdir/usr/share/java"
+ ln -s javacv-$_os-$_arch.jar "javacv/javacv-platform.jar"
+ ln -s javacv/javacv.jar .
+ ln -s javacv/javacv-platform.jar .
+}
+
+package_javacv-samples() {
+ pkgdesc='Java wrappers to commonly used libraries in the field of computer vision (samples)'
+ depends=(javacv)
+
+ cd "$srcdir/$_pkgname-bin"
+ install -D "$pkgdir/usr/share/java/javacv"
+ cp -r samples "$pkgdir/usr/share/java/javacv"
+}
+
+sha1sums=(2e3e63f2bb5b1a98234e28ab75a822656e3593fa)
diff --git a/frc-bin/smartdashboard-client/PKGBUILD b/frc-bin/smartdashboard-client/PKGBUILD
new file mode 100644
index 0000000..f4ed87b
--- /dev/null
+++ b/frc-bin/smartdashboard-client/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=smartdashboard-client
+pkgver=2012
+pkgrel=1
+pkgdesc='This is the platform independent SmartDashboard jar file.'
+arch=any
+url="http://firstforge.wpi.edu/sf/projects/smartdashboard"
+license=unknown
+groups=(frc)
+depends=(java-runtime)
+source=(
+ 'SmartDashboard2012.jar::http://firstforge.wpi.edu/sf/frs/do/downloadFile/projects.smartdashboard/frs.smartdashboard_client_0_5a1.smartdashboard_client_2012/frs1359?dl=1'
+ smartdashboard.sh
+)
+
+package() {
+ cd "$srcdir"
+
+ install -m644 -D SmartDashboard2012.jar "$pkgdir/usr/share/smartdashboard/SmartDashboard.jar"
+ install -m755 -D smartdashboard.sh "$pkgdir/usr/bin/smartdashboard"
+}
+
+md5sums=('4df81b4b6ff7c19547513519388f0d95'
+ 'a278b2e86bd4d732e86ac9e084f5ec4d')
diff --git a/frc-bin/smartdashboard-client/smartdashboard.sh b/frc-bin/smartdashboard-client/smartdashboard.sh
new file mode 100644
index 0000000..4378584
--- /dev/null
+++ b/frc-bin/smartdashboard-client/smartdashboard.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+cd /usr/share/smartdashboard
+
+if [ "`whoami`" == Driver ]; then
+ java -jar SmartDashboard.jar competition
+else
+ java -jar SmartDashboard.jar
+fi