File debian.rules of Package OpenSCAD
#!/usr/bin/make -f export DH_VERBOSE=1 export QT_SELECT=qt5 BUILD_SYSTEM := cmake %: dh $@ --buildsystem=$(BUILD_SYSTEM) --with python3 DEBVERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -f 2 -d \ | cut -f 1 -d -) OPENSCAD_VERSION := $(shell echo "$(DEBVERSION)" | sed -e 's/^\(....\)\(..\)\(..\).*/\1.\2.\3.nightly/') OPENSCAD_COMMIT := $(shell echo "$(DEBVERSION)" | cut -b 20-26) override_dh_auto_configure: dh_auto_configure --buildsystem=$(BUILD_SYSTEM) -- \ -DOPENSCAD_VERSION="$(OPENSCAD_VERSION)" \ -DOPENSCAD_COMMIT="$(OPENSCAD_COMMIT)" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DUSE_BUILTIN_OPENCSG=ON \ -DMANIFOLD_PYBIND=OFF \ -DMANIFOLD_TEST=OFF \ -DENABLE_PYTHON=ON \ -DENABLE_TESTS=OFF \ -DEXPERIMENTAL=ON \ -DSUFFIX=nightly \ -DSNAPSHOT=ON override_dh_auto_test: echo "dh_auto_test disabled" override_dh_auto_install: dh_auto_install --buildsystem=$(BUILD_SYSTEM) --destdir=debian/openscad-nightly override_dh_lintian: echo "dh_lintian disabled"