Cyril

Kodi

Build it from source (because distribution packages lack ISO-dvd playback)

Addons

Overview:

Path install info:

/usr/share/kodi when installed from a binary package (ie PPA, rpm, deb, etc)
/usr/local/share/kodi when compiled (unless you specify an alternate prefix)

Install required packages

Obtain source,& build Kodi

(kodi source directory can be on remote pc, but build directory(ies) should be local)
git clone kodi.git kodi-source
mkdir kodi-build-wayland; cd _$

to build specific tag/release:
git checkout tags/<tag_name> -b <branch_name>

prep-wayland:
cmake ../kodi-source -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=wayland -DWAYLAND_RENDER_SYSTEM=gl

prep-x11:
cmake ../kodi-source -DCMAKE_INSTALL_PREFIX=/usr/local

error message about missing dependencies during prep?
build missing dependencies , then prep again.

build:
cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)

install:
sudo make install -j$(getconf _NPROCESSORS_ONLN)

Addons

pvr.hts

Provides tvheadend interface
prep & build
cd ~/workshop.kodi
git clone pvr.hts.git
mkdir pvr.hts/build; cd $_
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local/share/kodi/addons -DPACKAGE_ZIP=1 ../../kodi-source/cmake/addons
make #also installs

doprep.sh:

#!/bin/bash
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local/share/kodi/addons -DPACKAGE_ZIP=1 ../../kodi-source/cmake/addons/

vfs.rar

Allows listing and execution of archived content
prep & build
cd ~/workshop.kodi
git clone vfs.rar.git
mkdir vfs.rar/build; cd $_
cmake -DADDONS_TO_BUILD=vfs.rar -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local/share/kodi/addons -DPACKAGE_ZIP=1 ../../kodi-source/cmake/addons
make #also installs