Advice here: http://forums.debian.net/viewtopic.php?f=16&t=38976
on how to build a debian binary package from source. Worth a read if you are thinking of compiling.
Building a DEB package from source
3 posts
- Posts: 105
- Joined: Sat Apr 07, 2012 11:22 am
- Location: Manchester, UK
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.
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
3) compile the package with
4) install the deb created with
5) remove the build-dep with this script :
Just run the script like 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
#!/bin/bash
package=$1
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