From 68a9f140a919dc36875bf9470bcfbf64ec7af5d5 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Thu, 27 Mar 2014 17:35:54 -0700 Subject: tweak debian build instructions includes recommending dpkg-buildpackage over debuild (which does more stuff that's probably not applicable to a local user build). --- README.rst | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/README.rst b/README.rst index b611694..94be1ef 100644 --- a/README.rst +++ b/README.rst @@ -94,10 +94,14 @@ list of build dependencies with the command sudo apt-get install devscripts equivs + rm -f mpv-build-deps_*_*.deb + mk-build-deps -s sudo -i This will generate and install a dummy package that depends on the -required packages. +required packages. The rm -f command makes sure there are no previous +versions of the build-deps package lying around that may otherwise +confuse mk-build-deps. If you don't want to use sudo, you can also try: @@ -105,10 +109,6 @@ If you don't want to use sudo, you can also try: su -c 'dpkg -i mpv-build-deps_*.deb || apt-get install -f' -Note that it is advised you first remove any old mpv-build-deps -package files previously created by you before running the above -commands to ensure that you are installing the correct version. - Building a Debian package ========================= @@ -117,19 +117,21 @@ dependencies: ./update -You can then build a full mpv Debian package with the following command: +You can then build a full mpv Debian package with the following commands: - debuild -uc -us -b -j4 + dpkg-buildpackage -uc -us -b -j4 -(4 is the number of jobs running in parallel - change it to match your -number of processors.) The .deb file will be created in the parent -directory, and can be installed with +"4" is the number of jobs running in parallel - change it to match +your number of processors. The file mpv__.deb +will be created in the parent directory. Install it with - sudo dpkg -i ../mpv_*_*.deb + sudo dpkg -i ../mpv__.deb -As with the mpv-build-deps package, you should ensure you are -installing the correct mpv__.deb and not one -you previously compiled. +where you must replace with the version of mpv you just +built (as indicated in debian/changelog) and with your +architecture. As with the mpv-build-deps package, you should ensure +you are installing the correct package and not one you previously +compiled. For further information regarding the Debian package, see debian/README.Debian. -- cgit v1.2.3