In this case Leap 15.x, but should be OK for other versions.
You might need to install stuff, like
zypper install libdvbcsa-devel
also these if you do not have them:
git
make
gcc
dvbv-devel
gettext-toools
libopenssl-devel
libavahi-devel
liburiparser-devel
Then make a folder in a place of your choice. I selected tvh43 under "devel"
Step into that folder, cd tvh43
git clone https://github.com/tvheadend/tvheadend.git
./configure --enable-bundle --disable-dvbscan --disable-hdhomerun_static --disable-libopus
make
Then, do test that it works if upgrading and note that upgrades, upgrade the config irreversibely. Make a backup of the .hts folder
Note that an upgrade will do that for you under .hts/tvheadend/backup
Start tvheadend interactively:
cd build.linux
./tvheadend -u youruser -g yourgroup
Where youruser is the user you are running as (.hts ends up under /home/youruser) and group usually is "video"
If you find this build to your liking, you can
make install
To start as a service, create a file named tvheadend.service that contains:
----
Description=tvheadend
Wants=network.target
After=network.target
# Whats oscam?
#Wants=oscam.service
#After=oscam.service
# Wants: would like to have, After: start after, Requires: needs
[Service]
User=root
# tvheadend nees root priv to create pid file and switch to user hts.
#Group=
Type=forking
PIDFile=/run/tvheadend.pid
ExecStart=/usr/bin/tvheadend -f -l /var/log/tvh.log -p /run/tvheadend.pid -u youruser -g yourgroup
ExecStop=/usr/bin/rm /run/tvheadend.pid
Restart=always
RestartSec=5
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target
[Service]
Type=forking
-----
Put in /usr/lib/systemd/system
Then service tvheadend start should do it