# For now, the solution is quite hackish: copy the source directory to the
# build directory before running configure.
tempdir := $(shell tempfile $(PACKAGE))
-version := $(shell head -1 debian/changelog | sed -e s'|^.*(\([^-)]*\).*$$|\1|')
+version := $(shell head -1 debian/changelog | sed -e s'|^.*(\(.*\)-.*).*$$|\1|')
configure-stamp: patch-stamp
$(checkdir)