summaryrefslogtreecommitdiff
path: root/frc-libre/wpilibj-networktable-client/PKGBUILD
blob: f8702a72583cbd999a33eec67ac2e9998cf320ff (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

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"
  cp -a "$pkgname" "$pkgname-build"
  cd "$pkgname-build"
  ant jar
  ant javadoc
}

package() {
  cd "$srcdir/$pkgname-build/dist"
  install -d "$pkgdir/usr/share/java/wpilibj"
  install -m644 -D NetworkTable_Client.jar "$pkgdir/usr/share/java/wpilibj"
  cp -a "$srcdir/$pkgname" "$pkgdir/usr/share/java/wpilibj/NetworkTable_Client"

  install -d "$pkgdir/usr/share/doc/wpilibj"
  cp -r javadoc "$pkgdir/usr/share/doc/wpilibj/networktable-client"
}

md5sums=('41f85650a7d16e14376a9af8839ab4f8')