summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-01-29 13:04:47 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-01-29 13:04:47 -0500
commita550dce37bbaf3d3e7666205c170144feaa3b1a0 (patch)
treeeb8e8b39901e4f5faaa24ae4d7798ff00f904a85
parent21a42fc245709c6de1f4369205720603248d1f07 (diff)
add frc-almostlibre/smartdashboard-client: that (tries) to build from source
-rw-r--r--frc-almostlibre/smartdashboard-client/PKGBUILD29
-rw-r--r--frc-almostlibre/smartdashboard-client/smartdashboard.sh9
2 files changed, 38 insertions, 0 deletions
diff --git a/frc-almostlibre/smartdashboard-client/PKGBUILD b/frc-almostlibre/smartdashboard-client/PKGBUILD
new file mode 100644
index 0000000..375ea0f
--- /dev/null
+++ b/frc-almostlibre/smartdashboard-client/PKGBUILD
@@ -0,0 +1,29 @@
+# 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-src-netbeans.zip::http://firstforge.wpi.edu/sf/frs/do/downloadFile/projects.smartdashboard/frs.smartdashboard_client_0_5a1.smartdashboard_client_2012/frs1360?dl=1'
+ smartdashboard.sh
+)
+
+build() {
+ cd "$srcdir/smartdashboard2012"
+ ant
+}
+
+package() {
+ cd "$srcdir"
+
+ install -m644 -D SmartDashboard2012.jar "$pkgdir/usr/share/smartdashboard/SmartDashboard.jar"
+ install -m755 -D smartdashboard.sh "$pkgdir/usr/bin/smartdashboard"
+}
+
+md5sums=('174b02a7e6b4e5bd6301a1afb88c5be6'
+ 'a278b2e86bd4d732e86ac9e084f5ec4d')
diff --git a/frc-almostlibre/smartdashboard-client/smartdashboard.sh b/frc-almostlibre/smartdashboard-client/smartdashboard.sh
new file mode 100644
index 0000000..4378584
--- /dev/null
+++ b/frc-almostlibre/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