How about this version?
-Mikko
--- ../../mozilla-thunderbird-1.0.7/debian/rules 2005-10-13 08:22:09.000000000 +0300 +++ rules 2005-10-12 15:52:59.000000000 +0300 @@ -16,8 +16,11 @@ MAKE_OPTS=-C build-dir/mozilla -TBIRD_BZ2_ARCHIVE=thunderbird-1.0.7-source.dfsg.tar.bz2 +# Parse upstream version from the Debian changelog file: +UPSTREAM_VERSION:=$(shell expr "$$( head -n1 debian/changelog )" : '.*[(]\(.*\)-.*[)].*$$') + +TBIRD_BZ2_ARCHIVE=thunderbird-$(UPSTREAM_VERSION)-source.dfsg.tar.bz2 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) @@ -67,6 +70,20 @@ # --enable-strip +get-orig-source: + pwd=`pwd` && \ + tmp=`mktemp -d /tmp/mozilla-thunderbird.XXXXXX` && \ + cd $$tmp && \ + wget -q ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$(UPSTREAM_VERSION)/source/thunderbird-$(UPSTREAM_VERSION)-source.tar.bz2 && \ + tar --exclude "other-licenses/branding*" \ + --exclude "other-licenses/7zstub*" \ + -jxf $$tmp/thunderbird-$(UPSTREAM_VERSION)-source.tar.bz2 && \ + tar -cjf $(TBIRD_BZ2_ARCHIVE) mozilla && \ + cp $$tmp/$(TBIRD_BZ2_ARCHIVE) \ + $$pwd/$(TBIRD_BZ2_ARCHIVE) && \ + cd $$pwd && \ + rm -rf $$tmp + build-dir/mozilla/config.status: build-dir/mozilla/configure dh_testdir rm -f build-dir/mozilla/.mozconfig @@ -238,4 +255,4 @@ dh_builddeb binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build clean binary-indep binary-arch binary install get-orig-source

