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) -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS=OFF -DMANIFOLD_TEST=OFF -DMANIFOLD_PYBIND=OFF -DUSE_BUILTIN_OPENCSG=ON -DEXPERIMENTAL=ON -DSNAPSHOT=ON -DSUFFIX=nightly -DOPENSCAD_VERSION="$(OPENSCAD_VERSION)" -DOPENSCAD_COMMIT="$(OPENSCAD_COMMIT)"

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"
openSUSE Build Service is sponsored by