From 6e4966a0d6e539205edd0832162c5218dca535d6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 29 Jan 2012 18:16:42 -0500 Subject: add frc-libre/wpilibj-networktable-client --- frc-libre/wpilibj-networktable-client/PKGBUILD | 29 ++++++++++++++++ frc-libre/wpilibj-networktable-client/SRCBUILD | 46 ++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 frc-libre/wpilibj-networktable-client/PKGBUILD create mode 100644 frc-libre/wpilibj-networktable-client/SRCBUILD diff --git a/frc-libre/wpilibj-networktable-client/PKGBUILD b/frc-libre/wpilibj-networktable-client/PKGBUILD new file mode 100644 index 0000000..f42459f --- /dev/null +++ b/frc-libre/wpilibj-networktable-client/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Luke Shumaker + +pkgname=wpilibj-networktable-client +pkgver=197 +pkgrel=1 +pkgdesc="WPI NetworkTable Client library" +arch=('any') +groups=(frc) +url="http://firstforge.wpi.edu/sf/projects/smartdashboard" +license=unknown +depends=(java-environment) +makedepends=(apache-ant) +source=("https://gitorious.org/absfrc/sources/blobs/raw/master/$pkgname-$pkgver-$pkgrel-any.src.tar.xz") + +build() { + cd "$srcdir/$pkgname" + ant jar + ant javadoc +} + +package() { + cd "$srcdir/$pkgname/dist" + install -d "$pkgdir/usr/share/java/wpilibj" + install -m644 -D NetworkTable_Client.jar "$pkgdir/usr/share/java/wpilibj" + install -d "$pkgdir/usr/share/doc/wpilibj" + cp -r javadoc "$pkgdir/usr/share/doc/wpilibj/networktable-client" +} + +md5sums=('41f85650a7d16e14376a9af8839ab4f8') diff --git a/frc-libre/wpilibj-networktable-client/SRCBUILD b/frc-libre/wpilibj-networktable-client/SRCBUILD new file mode 100644 index 0000000..cf3653b --- /dev/null +++ b/frc-libre/wpilibj-networktable-client/SRCBUILD @@ -0,0 +1,46 @@ +# Maintainer: Luke Shumaker + +# You need to create a login at and set +# "$_svnuser" and "$_svnpass". The account creation is free and automatic. + +pkgname=wpilibj-networktable-client +pkgver=197 +pkgrel=1 +pkgdesc="WPI NetworkTable Client library" +arch=('any') +groups=(frc) +url="http://firstforge.wpi.edu/sf/projects/smartdashboard" +license=unknown +makedepends=('subversion' 'findutils') +options=('!strip' 'docs' '!zipman' 'emptydirs') + +_svntrunk=http://firstforge.wpi.edu/svn/repos/smart_dashboard/tags/2012/NetworkTable/Client/Java/trunk +_svnver=197 +_svnuser=YOURUSERNAME +_svnpass=YOURPASSWORD + +build() { + cd "$srcdir" + msg "Connecting to SVN server..." + + if [[ -d "$pkgname/.svn" ]]; then + cd "$pkgname" && svn up -r "$_svnver" + else + svn co \ + --username "$_svnuser" \ + --password "$_svnpass" \ + --config-dir ./ \ + "$_svntrunk" -r "$_svnver" "$pkgname" + fi + + msg "SVN checkout done or server timeout" + + msg "Removing .svn files..." + find . -name .svn -print0 | xargs -0 rm -rf +} + +package() { + PKGEXT=${SRCEXT} + PKGDEST=${SRCDEST} + cp -a "${srcdir}/${pkgname}" "${pkgdir}/" +} -- cgit v1.2.3-2-g168b