summaryrefslogtreecommitdiff
path: root/frc-libre/smartdashboard-client/PKGBUILD
diff options
context:
space:
mode:
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')