X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Frules;h=ff70afd77f0316fe468af1553a9af51fe3e27506;hb=180cac3ff20c3a365c7f75f95b87a25229b1f1a4;hp=b18a9a31639645ab53a7cf540d456073eb2cc0ca;hpb=4b8bff9ce93df43b120c5cf4d1476d3a435f99d3;p=videolink.git diff --git a/debian/rules b/debian/rules index b18a9a3..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/videolink/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/videolink.substvars + # 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 - cp COPYING debian/videolink/usr/share/doc/videolink/copyright + 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