# 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)
$(install_file) debian/$(srcpkg).lintian-overrides \
$(dtmp)/$(srcpkg)/usr/share/lintian/overrides/$(srcpkg)
$(install_dir) $(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg)/
+ $(install_file) debian/changelog \
+ $(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg)/changelog.Debian
$(install_file) debian/copyright \
$(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg)/
$(install_file) tools/README debian/README.Debian \