Build zorba in tmp
[idzorba-moved-to-github.git] / debian / rules
index f67c581..e8673ca 100755 (executable)
@@ -4,17 +4,16 @@ export DH_VERBOSE=1
 %:
        dh $@ --without python-support \
                --parallel \
-               -Dzorba-3.0 -Bzorba-3.0/build
-
-override_dh_clean:
-       rm -fr zorba-3.0
-       rm -f zorba-3.0.tar.gz
-       dh_clean
+               -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 zorba-3.0; mkdir build; 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 \