updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / insight-toolkit / PKGBUILD
blob6c7ba06794bbe679642d6506608dd8cd7fa558a4
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: joel schaerer <joel.schaerer@laposte.net>
4 pkgname=insight-toolkit
5 pkgver=4.0.0
6 pkgrel=1
7 pkgdesc='Insight Segmentation and Registration Toolkit (ITK).'
8 arch=('i686' 'x86_64')
9 url='http://www.itk.org/'
10 license=('APACHE')
11 makedepends=('cmake')
12 source=("http://downloads.sourceforge.net/project/itk/itk/${pkgver:0:3}/InsightToolkit-${pkgver}.tar.xz")
13 md5sums=('f19be99de2c71e98cb53395456507707')
15 build() {
16   rm -rf build
17   mkdir build
18   cd build
20   cmake \
21     -DCMAKE_BUILD_TYPE:STRING=Release \
22     -DBUILD_TESTING:BOOL=OFF \
23     -DBUILD_EXAMPLES:BOOL=OFF \
24     -DBUILD_SHARED_LIBS:BOOL=ON \
25     -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
26     -DITK_USE_REVIEW:BOOL=ON \
27     ../InsightToolkit-${pkgver}
29   make
32 package() {
33   cd build
35   make DESTDIR=${pkgdir} install