diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-29 19:25:16 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-01-29 19:25:16 -0500 |
commit | f99d7432279b9d75e155d4d1240f32833e80108f (patch) | |
tree | fd4beec4ec317f5b05e3a5682b6409357de216cb /frc-libre/smartdashboard-client/PKGBUILD | |
parent | 6e4966a0d6e539205edd0832162c5218dca535d6 (diff) |
mv frc-{bin,libre}/smartdashboard-client
Diffstat (limited to 'frc-libre/smartdashboard-client/PKGBUILD')
-rw-r--r-- | frc-libre/smartdashboard-client/PKGBUILD | 50 |
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') |