From 238548582c59294fdc265246a1ab764b9e33d3c3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 29 Jan 2012 16:16:45 -0500 Subject: reshuffle a little more, add javacv and javacpp --- frc-bin/javacpp/PKGBUILD | 17 ++++++++++ frc-bin/javacv/PKGBUILD | 44 +++++++++++++++++++++++++ frc-bin/smartdashboard-client/PKGBUILD | 25 ++++++++++++++ frc-bin/smartdashboard-client/smartdashboard.sh | 9 +++++ 4 files changed, 95 insertions(+) create mode 100644 frc-bin/javacpp/PKGBUILD create mode 100644 frc-bin/javacv/PKGBUILD create mode 100644 frc-bin/smartdashboard-client/PKGBUILD create mode 100644 frc-bin/smartdashboard-client/smartdashboard.sh (limited to 'frc-bin') 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 + +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 + +_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 + +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 -- cgit v1.2.3-2-g168b