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

pkgname=wpijavacv
pkgver=208
pkgrel=1
pkgdesc="WPI extentensions to JavaCV."
arch=('any')
groups=(frc)
url="http://firstforge.wpi.edu/sf/projects/smartdashboard"
license=unknown
depends=(java-environment javacv)
makedepends=(apache-ant)
source=("https://gitorious.org/absfrc/sources/blobs/raw/master/$pkgname-$pkgver-$pkgrel-any.src.tar.xz")

build() {
  cd "$srcdir/$pkgname"
  ln -s /usr/share/java/javacpp.jar lib
  ln -s /usr/share/java/javacv.jar lib
  ln -s /usr/share/java/javacv-platform.jar lib

  cd ..
  cp -a "$srcdir/$pkgname" "$srcdir/$pkgname-build"
  cd "$srcdir/$pkgname-build"

  ant jar
  ant javadoc
}

package() {
  cd "$srcdir/$pkgname-build/dist"
  install -m644 -D WPIJavaCV.jar "$pkgdir/usr/share/java/WPIJavaCV.jar"
  cp -a "$srcdir/$pkgname" "$pkgdir/usr/share/java/WPIJavaCV"
  install -d "$pkgdir/usr/share/doc/wpijavacv"
  cp -r javadoc "$pkgdir/usr/share/doc/wpijavacv"
}

md5sums=('8f7c7b60d4a12324fa12234c522165e1')