summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore14
-rw-r--r--frc/smartdashboard-client/PKGBUILD24
-rw-r--r--frc/smartdashboard-client/smartdashboard.sh9
3 files changed, 47 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..cb12a76
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,14 @@
+# probably source downloads
+*.tar.gz
+*.tar.xz
+*.tar.bz2
+*.tgz
+*.zip
+
+# pacman things
+src/
+pkg/
+*.pkg.tar.*
+*.src.tar.*
+
+*.log
diff --git a/frc/smartdashboard-client/PKGBUILD b/frc/smartdashboard-client/PKGBUILD
new file mode 100644
index 0000000..5937591
--- /dev/null
+++ b/frc/smartdashboard-client/PKGBUILD
@@ -0,0 +1,24 @@
+# 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
+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/smartdashboard-client/smartdashboard.sh b/frc/smartdashboard-client/smartdashboard.sh
new file mode 100644
index 0000000..4378584
--- /dev/null
+++ b/frc/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