How To Build Tribler on Debian
I use a Debian-3.1 stable release to build and a fully-patched virgin Debian testing (etch) release to see if it works (all under VMWare)
1. Checkout the Tribler source code as e.g. tribler-4.0.1
2. Clean the source code
rm -rf contrib rm -rf `find . -name .svn` rm *TODO* rm FAQ.txt rm -rf icons/mugshots rm addplaytime.py rm addtorrent2db.py rm lastest_version.txt rm local.simin rm test/testdata.txt
3. Make sure you have devscripts and debhelper installed.
4. In the debian subdir run:
dch -i
Make sure you change the version number to the right value, dch uses some magic to determine what the current version is. E.g. it looks at the CHANGES or ChangeLog? file in the top directory.
5. In the top directory run:
debuild
A package *.deb will now be build in the parent directory of the top directory. It will issue a warning about not being able to find software for adding a digital signature.
6. Upload this file .deb file to the website in the directory
debian/dists/testing/main/binary-i386/
For testing I use http://debian.tribler.org/~arno/debian/ which corresponds to superpeer1:/home/arno/public_html/debian For production use http://debian.tribler.org/debian aka superpeer1:/var/www/debian/debian
7. From the website's debian directory, run:
dpkg-scanpackages dists/testing/main/binary-i386 /dev/null | gzip > dists/testing/main/binary-i386/Packages.gz
8. Done!
Thanks to Otto Visser for the original input.
