summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frc-bin/javacpp/PKGBUILD17
-rw-r--r--frc-bin/javacv/PKGBUILD44
-rw-r--r--frc-bin/smartdashboard-client/PKGBUILD (renamed from frc-nonlibre/smartdashboard-client/PKGBUILD)0
-rw-r--r--frc-bin/smartdashboard-client/smartdashboard.sh (renamed from frc-nonlibre/smartdashboard-client/smartdashboard.sh)0
4 files changed, 61 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-nonlibre/smartdashboard-client/PKGBUILD b/frc-bin/smartdashboard-client/PKGBUILD
index f4ed87b..f4ed87b 100644
--- a/frc-nonlibre/smartdashboard-client/PKGBUILD
+++ b/frc-bin/smartdashboard-client/PKGBUILD
diff --git a/frc-nonlibre/smartdashboard-client/smartdashboard.sh b/frc-bin/smartdashboard-client/smartdashboard.sh
index 4378584..4378584 100644
--- a/frc-nonlibre/smartdashboard-client/smartdashboard.sh
+++ b/frc-bin/smartdashboard-client/smartdashboard.sh