updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / opencv-svn / PKGBUILD
blob99ac04da89ef48f255081b52facf5c453b9a1cbb
1 # Maintainer: Martin Imobersteg <martin.imobersteg@gmail.com>
2 # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
4 pkgname=opencv-svn
5 pkgver=4703
6 pkgrel=1
7 pkgdesc="Collection of algorithms, documentation and sample code for real time computer vision."
8 url="http://sourceforge.net/projects/opencvlibrary"
9 license=("BSD")
10 arch=(i686 x86_64)
11 conflicts=('opencv')
12 provides=('opencv')
13 options=(!libtool)
15 source=()
16 md5sums=()
18 depends=('gstreamer0.10' 'jasper' 'openexr' 'ffmpeg' 'v4l-utils' 'eigen' 'xine-lib')
19 makedepends=('subversion' 'cmake' 'python2' 'python2-numpy' 'doxygen')
21 _svntrunk=https://code.ros.org/svn/opencv/trunk/opencv
22 _svnmod=opencv
24 build() {
25     cd "$srcdir"
27     if [ -d $_svnmod/.svn ]; then
28         (cd $_svnmod && svn up -r $pkgver)
29     else
30         svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31     fi
33     msg "SVN checkout done or server timeout"
34     msg "Starting make..."
36     rm -rf $srcdir/$_svnmod-build
37     cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
38     cd $srcdir/$_svnmod-build
40     mkdir build
41     cd build
42     cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr -D BUILD_PYTHON_SUPPORT=ON .. || return 1
43     make
44     make DESTDIR=$pkgdir install
46     # adding license
47     install -d -m755 $pkgdir/usr/share/licenses/$pkgname
48     install -m644 $srcdir/$_svnmod/doc/license.txt $pkgdir/usr/share/licenses/$pkgname