updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / orfeo-toolbox / PKGBUILD
blobdc6e0d78d89772676d09ab313fb551e16cc492f7
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Argyros Argyridis <arargyridis@gmail.com>
7 pkgname=orfeo-toolbox
8 pkgver=3.10
9 pkgrel=2
10 pkgdesc="ORFEO Toolbox (OTB) is an open source library of image processing algorithms"
11 arch=(x86_64)
12 url="http://www.orfeo-toolbox.org/otb/"
13 license=('CeCILL')
14 groups=()
15 depends=('cmake' 'gdal' 'freeglut' 'itk' 'curl' 'fftw' 'mercurial')
16 makedepends=()
17 optdepends=( 'fltk' 'fltk2')
18 provides=(orfeo-toolbox)
19 conflicts=()
20 replaces=()
21 backup=()
22 options=()
23 install=
24 changelog=
25 #source=($pkgname-$pkgver.tar.gz)
26 noextract=()
27 #md5sums=() #generate with 'makepkg -g'
29 build() {
31   cd $srcdir/
32   msg "connecting to server..."
34   if [ ! -d "$srcdir/OTB" ]; then
35     hg clone http://hg.orfeo-toolbox.org/OTB
36   else
37     cd $srcdir/OTB
38     hg pull -u
39     cd ..
40   fi
42   msg "checking done or server timeout occured"
43   
44   msg "starting make..."
45   rm -rf OTB/Examples
46   rm -rf build/
47   mkdir build/
48   cd build
50   
51   cmake ../OTB 
52   make -j3
55 package() {
57   cd "$srcdir/"build
58   make DESTDIR="$pkgdir" install