summaryrefslogtreecommitdiff
path: root/frc-libre/smartdashboard-client/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'frc-libre/smartdashboard-client/PKGBUILD')
-rw-r--r--frc-libre/smartdashboard-client/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/frc-libre/smartdashboard-client/PKGBUILD b/frc-libre/smartdashboard-client/PKGBUILD
new file mode 100644
index 0000000..5f7d699
--- /dev/null
+++ b/frc-libre/smartdashboard-client/PKGBUILD
@@ -0,0 +1,50 @@
+# 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 jcommon jfreechart wpilibj-networktable-client junit)
+source=(
+ "https://gitorious.org/absfrc/sources/blobs/raw/master/$pkgname-$pkgver-$pkgrel-any.src.tar.xz"
+ smartdashboard.sh
+)
+
+build() {
+ cd "$srcdir"
+ cp -r "smartdashboard$pkgver" "smartdashboard$pkgver-build"
+ cd "smartdashboard$pkgver-build"
+
+ ln -s /usr/share/java/wpilibj/NetworkTable_Client.jar lib
+ ln -s /usr/share/java/jcommon.jar lib
+ ln -s /usr/share/java/jfreechart.jar lib
+ ln -s /usr/share/java/junit.jar lib
+ ant jar
+}
+
+package() {
+ install -d "$pkgdir/usr/share/smartdashboard/lib"
+ install -d "$pkgdir/usr/share/smartdashboard/extensions/lib"
+
+ cd "$srcdir"
+ cp -r "smartdashboard$pkgver" "$pkgdir/usr/share/smartdashboard/src"
+ install -m755 -D smartdashboard.sh "$pkgdir/usr/bin/smartdashboard"
+
+ cd "smartdashboard$pkgver-build"
+ install -d "$pkgdir/usr/share/smartdashboard"
+ install -m644 build/jar/SmartDashboard.jar "$pkgdir/usr/share/smartdashboard"
+
+
+ cd "$pkgdir/usr/share/smartdashboard/lib"
+ ln -s /usr/share/java/wpilibj/NetworkTable_Client.jar .
+ ln -s /usr/share/java/jcommon.jar .
+ ln -s /usr/share/java/jfreechart.jar .
+ ln -s /usr/share/java/junit.jar .
+}
+
+md5sums=('8f69a9db66c5d73042e3dedf54228c5d'
+ 'a278b2e86bd4d732e86ac9e084f5ec4d')