blob: 5f7d6999061841773ce4fa1c139b59caa01f1270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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')
|