- @echo "Despite the warnings from dh_shlibdeps, this should complete dependencies:"
- echo "mozilla:Depends=mozilla-browser (= $$(dpkg-query -W --showformat='$${version}' mozilla-browser))" >> debian/webdvd.substvars
- mkdir -p -m755 debian/webdvd/usr/share/doc/webdvd
- cp COPYING debian/webdvd/usr/share/doc/webdvd/copyright
+ # VideoLink relies on some un-frozen APIs which may break
+ # between releases and even with backported security patches.
+ # The libxul packages have sonames and a shlibs file so we
+ # should get correct dependencies automatically, but this is
+ # not the case for mozilla-browser.
+ if dpkg-query -W libxul-dev >&/dev/null; then \
+ echo "mozilla:Depends=" >> debian/videolink.substvars ; \
+ else \
+ MOZ_VERSION=$$(dpkg-query -W --showformat='$${version}' mozilla-browser | sed 's/+b[0-9]*$$//') \
+ && echo "mozilla:Depends=mozilla-browser (>= $$MOZ_VERSION), mozilla-browser (<< $${MOZ_VERSION}+b99)" >> debian/videolink.substvars ; \
+ fi
+ mkdir -p -m755 debian/videolink/usr/share/doc/videolink
+ install -m644 debian/copyright debian/videolink/usr/share/doc/videolink/copyright
+ mv debian/videolink/usr/share/doc/videolink/ChangeLog.gz \
+ debian/videolink/usr/share/doc/videolink/changelog.gz