1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
export PYBUILD_NAME=meshio
export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)
export PYBUILD_AFTER_TEST=find {build_dir} -maxdepth 1 -type f -delete
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_clean:
dh_auto_clean
rm -f meshio-convert.1 msh2xdmf.1
override_dh_auto_build:
dh_auto_build
pandoc -s -t man debian/meshio-convert.md \
-o meshio-convert.1
pandoc -s -t man debian/msh2xdmf.md \
-o msh2xdmf.1
override_dh_auto_install:
dh_auto_install
dh_movefiles -pmeshio-tools --sourcedir=debian/python3-meshio usr/bin
mkdir -p debian/meshio-tools/usr/share
mv debian/python3-meshio/usr/share/paraview* debian/meshio-tools/usr/share
cd debian/meshio-tools/usr/share; for p in paraview_*; do \
mv $$p `echo $$p | sed "s/paraview_/paraview-/"`; \
done
|