User Tools

Site Tools


helpdocs:builddebs

This is an old revision of the document!


When you have source and just want to compile, without deep dependencies checking

Make sure you have all dependencies:

# apt-get install autotools-dev fakeroot dh-make build-essential

Extract the source file and cd into it. Then use dh_make to create the DEBIAN control files.

# dh_make

You will be presented with some options, choose the most appropriate for your case. Then edit ./DEBIAN/control and make sure the information is correct

Then run the following: (this has to be done as root)

# dpkg-buildpackage -rfakeroot

When you have source and want to compile it with a more complete method

Make sure you have all dependencies:

# apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder

Extract the source file and cd into it. Then use dh_make to create the DEBIAN control files. You can also pass the source and your email as parameters

# dh_make -e youremail@address -f ../x264-0.1+svn20100107.tar.gz

You will be presented with some options, choose the most appropriate for your case. Then edit ./DEBIAN/control and make sure the information is correct

Then run the following: (this has to be done as root)

# dpkg-buildpackage -rfakeroot

Then run dpkg-depcheck to get an analysis of the dependencies

#dpkg-depcheck -d ./configure

Now edit the ./DEBIAN/control, add the dependencies and fill all the required parameters. With the control file created and filled you can start building the .deb file.

#dpkg-buildpackage -rfakeroot
helpdocs/builddebs.1484378450.txt.gz · Last modified: 2017/01/14 01:20 by localadmin