You can follow what I did.
The instructions below gives you a working setup on RTL2832 DVB-T stick (that’s what I have).
Main steps were posted from bberski in TVHEADEND 3.9 config
I’ll repeat/ammend what I had to add to get it all built and working.
My slightly changed step by step version (make sure you uninstall the OSMC tvheadend package before you do the below of course):
#Building tvheadend package step by step
ssh in to your osmc and run this commands
#install necessary packeges to build tvheadend
sudo apt-get update -y
sudo apt-get install build-essential pkg-config libssl-dev git debhelper libavahi-client-dev libcurl4-gnutls-dev iburiparser-dev -y
sudo apt-get install libavahi-client-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libavcodec-extra-56 liburiparser1 liburiparser-dev debhelper libcurl4-gnutls-dev a56
sudo apt-get install fakeroot -y
#create and change to new temp source directory
mkdir -p /tmp/src
cd /tmp/src
#download headhend source from github
git clone GitHub - tvheadend/tvheadend: Tvheadend is the leading TV streaming server for Linux with ATSC, DVB-C/C2, DVB-S/S2, DVB-T/T2, IPTV, SAT>IP and unix pipe input sources
#change dir to tvheadend source dir and change the user that will run tvheadhend from hts to osmc before you build the package
cd tvheadend*
sed -i ‘s/hts/osmc/g’ ./debian/tvheadend.default
#build the tvheadend package - it will take a while to build (ignore some fail at the beginning)
AUTOBUILD_CONFIGURE_EXTRA=–disable-libav ./Autobuild.sh -t debian
#you will end up with two packages (you won’t need the dbg package)
#/tmp/src/tvheadend_3.9.2731~g84ee616-dirty_armhf.deb
#/tmp/src/tvheadend-dbg_3.9.2731~g84ee616-dirty_armhf.deb
#copy the package to your /home/osmc/ folder to keep it
cp /tmp/src/tvheadend_3.9.*deb /home/osmc/
#change dir to osmc home dir and install the package
cd /home/osmc/
sudo dpkg -i tvheadend_3.9*.deb
#if tvheadend is not installed)you’ll be asked to enter/choose a user name and password and then your should be able to browse to http://x.x.x.x:9981/
you can use the same procedure above to create new packages and update your tvheadend with latest source, just skip the installation of the “packeges to build tvheadend”
you also need to remove the current source from /tmp/src/
let me know if you are successfull.