Build zorba in tmp
[idzorba-moved-to-github.git] / debian / rules
index 47b0f33..e8673ca 100755 (executable)
@@ -2,13 +2,23 @@
 export DH_VERBOSE=1
 
 %:
-       dh $@ --without python-support
+       dh $@ --without python-support \
+               --parallel \
+               -Dtmp/zorba-3.0 -Btmp/zorba-3.0/build
 
+override_dh_auto_clean:
+       rm -fr tmp
+       
 override_dh_auto_configure:
-       wget http://ftp.indexdata.dk/pub/support/zorba-3.0.tar.gz
-       tar zxf zorba-3.0.tar.gz
-       cd build; cmake \
+       mkdir -p tmp
+       cd tmp; wget http://ftp.indexdata.dk/pub/support/zorba-3.0.tar.gz
+       cd tmp; tar zxf zorba-3.0.tar.gz
+       cd tmp/zorba-3.0; mkdir build; cd build; cmake \
                -Wno-dev \
                -D CMAKE_INSTALL_PREFIX=/opt/zorba \
                -D ZORBA_SUPPRESS_SWIG:BOOL=ON \
                ..
+
+# Don't run tests. They fail
+override_dh_auto_test:
+