updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / gdcm-python / PKGBUILD
blob0573166ad4084871adebac609c3d48bfecf18dda
1 # Maintainer: Christofer Bertonha <chritoferbertonha@gmail.com>
3 pkgname=gdcm-python
4 pkgver=2.0.18
5 pkgrel=1
6 pkgdesc='An implementation of the DICOM standard designed to be open source so that researchers may access clinical data directly.'
7 arch=('i686' 'x86_64')
8 url='http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Main_Page'
9 license=('BSD')
10 depends=('python2' 'zlib' 'expat' 'swig' 'vtk')
11 makedepends=('cmake' 'python2' 'zlib' 'expat' 'swig' 'vtk')
12 provides=(gdcm)
13 conflicts=(gdcm)
14 source=("http://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%20${pkgver}/gdcm-${pkgver}.tar.gz")
16 md5sums=('3c431bac0fe4da166f2b71c78f0d37a6')
18 build() {
19   cd ${srcdir}
21   mkdir -p build && cd build
23   cmake \
24     -DCMAKE_BUILD_TYPE:STRING=Release \
25     -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
26     -DCMAKE_C_FLAGS:STRING=-fPIC \
27     -DCMAKE_CXX_FLAGS:STRING=-fPIC \
28     -DGDCM_BUILD_SHARED_LIBS:BOOL=ON \
29     -DGDCM_BUILD_APPLICATIONS:BOOL=ON \
30     -DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \
31     -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \
32     -DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON \
33     -DGDCM_USE_SYSTEM_POPPLER:BOOL=ON \
34     -DGDCM_USE_SYSTEM_UUID:BOOL=ON \
35     -DGDCM_USE_SYSTEM_ZLIB:BOOL=ON \
36     -DGDCM_USE_VTK:BOOL=ON \
37     -DGDCM_WRAP_PYTHON:BOOL=ON \
38     ../gdcm-${pkgver}
40   make
43 package() {
44   cd ${srcdir}/build
46   make DESTDIR=${pkgdir} install
48   cd ${pkgdir}/usr/lib
49   mkdir -p python2.7/site-packages
51   mv gdcm{,swig}.py python2.7/site-packages
52   mv vtkgdcm.py python2.7/site-packages
53   mv _gdcmswig.so python2.7/site-packages
54   mv *Python.so* python2.7/site-packages