Packaging TVHeadend for distribution

Once you have built TVHeadend, you may want to create a redistributable debian package to enable you to distribute and install the package on a system other than the one you built the package on (this works hand-in-hand with our ‘Cross-compiling TVHeadend for Raspberry Pi’ guide).

Installing dependencies

Packaging TVHeadend has the same core dependencies ans building from source so ensure you install those dependencies before attempting to package TVHeadend.

Additional dependencies

As well as the build dependencies discussed above, the following are required to build a redistributable package for TVHeadend;

sudo apt-get install debhelper libcurl4-gnutls-dev curl


sudo aptitude install debhelper libcurl4-gnutls-dev curl

Building TVHeadend package

From the TVHeadend source directory, run;

AUTOBUILD_CONFIGURE_EXTRA='--prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libexecdir=${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking --enable-libffmpeg_static --enable-hdhomerun_static --enable-dvbcsa --enable-bundle' ./ -t debian

Installing packaged version of TVHeadend

The autobuild command will produce a .deb file (named something like tvheadend_v4.1-2141~g01c26fc_amd64.deb) in the directory above the source directory. To install it, you should run;

sudo dpkg -i <tvheadend_output_file>.deb
Posted in TVHeadend Tagged with: ,