File debian.rules of Package OpenSCAD

#!/usr/bin/make -f

export DH_VERBOSE=1
export QMAKEFEATURES=$(CURDIR)/features

BUILD_SYSTEM := qmake

%:
	dh $@ --buildsystem=$(BUILD_SYSTEM) --with python2

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) -- -d openscad.pro CONFIG+=experimental CONFIG-=debug SUFFIX=-nightly VERSION="$(OPENSCAD_VERSION)" OPENSCAD_COMMIT="$(OPENSCAD_COMMIT)"

override_dh_auto_install:
	dh_auto_install --buildsystem=$(BUILD_SYSTEM) --destdir=debian/openscad-nightly

override_dh_lintian:
	echo "dh_lintian disabled"