Building a DEB package from source

3 posts
by chrisw2 » Mon Jun 25, 2012 12:26 am
Advice here:

on how to build a debian binary package from source. Worth a read if you are thinking of compiling.
Posts: 106
Joined: Sat Apr 07, 2012 11:22 am
Location: Manchester, UK
by mpthompson » Mon Jun 25, 2012 4:23 am
Thanks for passing this very useful information along. I made a reference to it on the Wiki so I can use it myself at a later time.
User avatar
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by Goldy » Mon Jun 25, 2012 4:29 pm
If you just want to compile a package from a repository without armhf support, you can also just doing this :

1) Add the repository to the /etc/apt/source.list
2) doing
Code: Select all
apt-get build-dep packagename

3) compile the package with
Code: Select all
apt-get -b source packagename

4) install the deb created with
Code: Select all
dpkg -i packagename-version.deb

5) remove the build-dep with this script :

Code: Select all


aptitude markauto $(apt-cache showsrc $package | grep Build-Depends | perl -p -e 's/(?:[[(].+?[])]|Build-Depends:|,||)//g')

Just run the script like this
Code: Select all
./scriptname packagename
Posts: 3
Joined: Mon Jun 25, 2012 4:16 pm