blob: 05896661551d6c4de9ca3f0cc0668aa5c422287d (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# 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)
makedepends=(apache-ant netbeans)
source=(
"https://gitorious.org/absfrc/sources/blobs/raw/master/$pkgname-$pkgver-$pkgrel-any.src.tar.xz"
smartdashboard.sh
)
build() {
cd "$srcdir/smartdashboard$pkgver"
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
touch lib/nblibraries.properties
# Use the global install of NetworkTable_Client
_networktable=/usr/share/java/wpilibj/NetworkTable_Client
sed -i "s@^\(project\.NetworkTable_Client=\).*@\1$_networktable@" \
nbproject/project.properties
# Make depends .jar files version-agnostic
sed -i 's@lib/\([a-z]*\)-[0-9.]*\.jar@lib/\1.jar@' \
nbproject/project.properties nbbuild.xml
mkdir dist
ln -s ../lib dist/lib
cd ..
cp -a "smartdashboard$pkgver" "smartdashboard$pkgver-build"
cd "smartdashboard$pkgver-build"
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=('1b24e340cbc07e82edb29584444d8f83'
'a278b2e86bd4d732e86ac9e084f5ec4d')
|