From f99d7432279b9d75e155d4d1240f32833e80108f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 29 Jan 2012 19:25:16 -0500 Subject: mv frc-{bin,libre}/smartdashboard-client --- frc-libre/smartdashboard-client/PKGBUILD | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 frc-libre/smartdashboard-client/PKGBUILD (limited to 'frc-libre/smartdashboard-client/PKGBUILD') 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 + +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') -- cgit v1.2.3-54-g00ecf