-wget --no-check-certificate http://www.auto.tuwien.ac.at/~mkoegler/pth/pthsem_2.0.8.tar.gz
-tar xf pthsem_2.0.8.tar.gz
+if [ "$DEB_HOST_GNU_TYPE" == "arm-linux-gnueabihf" ]
+then
+ PTH_OPTS="--with-mctx-mth=sjlj --with-mctx-dsp=ssjlj --with-mctx-stk=sas"
+fi
+
+tar xf Downloads/pthsem_2.0.8.tar.gz