blob: 67e0f724d5f6d1fd1d0473f4cf9732054a0c40ec (
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
38
39
40
41
42
43
44
|
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
_pkgname=javacv
pkgname=($_pkgname $_pkgname-samples)
pkgver=20120108
pkgrel=1
pkgdesc='Java wrappers to commonly used libraries in the field of computer vision'
arch=(i686 x86_64)
url=https://code.google.com/p/javacv/
license=(GPL2)
source=("https://javacv.googlecode.com/files/javacv-bin-$pkgver.zip")
_os=linux
case "${CARCH}" in
'x86_64') _arch=x86_64;;
'i686') _arch=x86;;
#'arm') _arch=arm;; # _os=android
*) _arch=UNSUPPORTED_ARCH;;
esac
package_javacv() {
depends=('opencv<=2.3.2' javacpp=20120108)
optdepends=(ffmpeg libdc1394=2.1 libfreenect android-sdk jocl jogl)
cd "$srcdir/$_pkgname-bin"
install -d "$pkgdir/usr/share/java/javacv"
install -m644 javacv.jar "$pkgdir/usr/share/java/javacv"
install -m644 javacv-$_os-$_arch.jar "$pkgdir/usr/share/java/javacv"
cd "$pkgdir/usr/share/java"
ln -s javacv-$_os-$_arch.jar "javacv/javacv-platform.jar"
ln -s javacv/javacv.jar .
ln -s javacv/javacv-platform.jar .
}
package_javacv-samples() {
pkgdesc='Java wrappers to commonly used libraries in the field of computer vision (samples)'
depends=(javacv)
cd "$srcdir/$_pkgname-bin"
install -d "$pkgdir/usr/share/java/javacv"
cp -r samples "$pkgdir/usr/share/java/javacv"
}
sha1sums=(2e3e63f2bb5b1a98234e28ab75a822656e3593fa)
|