X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Frules;h=ff70afd77f0316fe468af1553a9af51fe3e27506;hb=74dbe6d5a31bbffaceb99c5a28c482a898ba1e37;hp=28061687abfe0c0b9824d15dd730a27b33d6d8f1;hpb=7fc4c475413207df163795d33fe3dae85b72a0fe;p=videolink.git diff --git a/debian/rules b/debian/rules index 2806168..ff70afd 100755 --- a/debian/rules +++ b/debian/rules @@ -7,16 +7,27 @@ binary : binary-arch binary-indep binary-arch : build dh_testroot - make prefix=debian/webdvd/usr install + make DESTDIR=debian/videolink prefix=/usr install dh_strip dh_shlibdeps - @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 dh_installchangelogs - dh_installdocs dh_compress + dh_fixperms dh_installdeb dh_gencontrol dh_builddeb @@ -25,5 +36,6 @@ binary-indep : clean : make clean + dh_clean .PHONY : build binary binary-arch binary-dep clean svn-build