X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Frules;h=ff70afd77f0316fe468af1553a9af51fe3e27506;hb=f5d9069647f70b7aab8e656f59cf42176c419461;hp=17288b552a9aa0d10d5e5aa5f57524f809fb0899;hpb=ce304317985152be5ce0acf2138f8d2587315c53;p=videolink.git diff --git a/debian/rules b/debian/rules index 17288b5..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,9 +36,6 @@ binary-indep : clean : make clean - -svn-build : - svn-buildpackage \ - --svn-builder='pdebuild-dist $(if $(DIST),$(DIST),sid)' + dh_clean .PHONY : build binary binary-arch binary-dep clean svn-build