summaryrefslogtreecommitdiff
path: root/frc-libre/smartdashboard-client/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-01-29 22:21:08 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-01-29 22:21:08 -0500
commitbbe9106bc4e52b96d4d774a588285275d3cdfad1 (patch)
treefc4334cf60018bbbe6bc6f326cd898e83debab4c /frc-libre/smartdashboard-client/PKGBUILD
parentf99d7432279b9d75e155d4d1240f32833e80108f (diff)
include sources for frc-libre/{wpilibj-networktable-client,wpijavacv,smartdashboard-client}
Diffstat (limited to 'frc-libre/smartdashboard-client/PKGBUILD')
-rw-r--r--frc-libre/smartdashboard-client/PKGBUILD22
1 files changed, 17 insertions, 5 deletions
diff --git a/frc-libre/smartdashboard-client/PKGBUILD b/frc-libre/smartdashboard-client/PKGBUILD
index 5f7d699..6cbe339 100644
--- a/frc-libre/smartdashboard-client/PKGBUILD
+++ b/frc-libre/smartdashboard-client/PKGBUILD
@@ -15,14 +15,26 @@ source=(
)
build() {
- cd "$srcdir"
- cp -r "smartdashboard$pkgver" "smartdashboard$pkgver-build"
- cd "smartdashboard$pkgver-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
}
@@ -46,5 +58,5 @@ package() {
ln -s /usr/share/java/junit.jar .
}
-md5sums=('8f69a9db66c5d73042e3dedf54228c5d'
+md5sums=('7e1bf5e8d10b68d435e26dc40f3df283'
'a278b2e86bd4d732e86ac9e084f5ec4d')