Package Details: kodi-addon-pvr-hts 21.2.1-2

Git Clone URL: https://aur.archlinux.org/kodi-addon-pvr-hts.git (read-only, click to copy)
Package Base: kodi-addon-pvr-hts
Description: Tvheadend HTSP PVR client addon for Kodi
Upstream URL: https://github.com/kodi-pvr/pvr.hts
Keywords: hts kodi pvr tvheadend
Licenses: GPL
Groups: kodi-addons
Submitter: AlD
Maintainer: AlD
Last Packager: AlD
Votes: 31
Popularity: 0.89
First Submitted: 2015-08-11 02:08 (UTC)
Last Updated: 2024-04-15 21:05 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

AlD commented on 2024-04-15 21:07 (UTC)

Applied, thx.

sergiud commented on 2024-04-15 19:08 (UTC)

Unfortunately, the package unconditionally assumes (Unix) Makefiles CMake generator which causes the following error every time I update:

-- Configuring done (3.5s)
-- Generating done (0.0s)
-- Build files have been written to: /home/<user>/.cache/yay/kodi-addon-pvr-hts/src/pvr.hts/build
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: kodi-addon-pvr-hts-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
kodi-addon-pvr-hts - exit status 4

because I have CMAKE_GENERATOR=Ninja defined in my ~/.bashrc.

Resolving this issue requires replacing all make calls either by cmake --build or cmake --install to be generator agnostic. I suggest the following changes:

diff --git a/PKGBUILD b/PKGBUILD
index 3d44752..9e493da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,19 +21,15 @@ md5sums=('SKIP')
 _prefix='/usr'

 build() {
-  msg "Starting make..."
+  msg "Starting build..."

   cd "$srcdir/$_gitname"
-  mkdir -p build && pushd build
-  cmake \
+  cmake -S . -B build/ \
     -DCMAKE_INSTALL_PREFIX=$_prefix \
-    -DCMAKE_BUILD_TYPE=Release \
-    ..
-  make
-  popd
+    -DCMAKE_BUILD_TYPE=Release
+  cmake --build build/
 }

 package() {
-  cd "$srcdir/$_gitname/build"
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install "$srcdir/$_gitname/build"
 }

DEUS commented on 2024-04-09 19:45 (UTC) (edited on 2024-04-09 20:23 (UTC) by DEUS)

As this is Arch and the AUR and it drove me crazy that the Nexus package is no longer in my cache to downgrade, so I've tried to fix it for myself, not sure how much gonna break with this but it compiles and runs on my Raspberry Pi 2 until AlD fixes this in a propper way. Start the install and wait for the error, then the CMakeCache.txt is created and the sed will work on the 2nd run, if done on the first it will break before. Edit PKGBUILD and PKGBUILD.in, not sure if only one is needed. correct the version and put the following line "sed -i '/-mno-omit-leaf-frame-pointer/d' CMakeCache.txt" before the cmake call, this removes -mno-omit-leaf-frame-pointer flag from the makefile like below, then it seems to work.

pkgver=20.7.0

_gitver=branch=Omega

define(GIT_VERSION',branch=Nexus')dnl

mkdir -p build && pushd build

sed -i '/-mno-omit-leaf-frame-pointer/d' CMakeCache.txt

cmake -DCMAKE_INSTALL_PREFIX=$_prefix -DCMAKE_BUILD_TYPE=Release ..

AlD commented on 2024-01-11 16:04 (UTC)

sorry, fixed

bedouin commented on 2024-01-11 13:40 (UTC) (edited on 2024-01-11 13:42 (UTC) by bedouin)

Version change from 20.6.5 to "0" in 2023-12-19 PKGBUILD prevents package from being upgraded. Upstream now claims version 20.7.0 for Nexus.

lod commented on 2023-01-18 10:21 (UTC) (edited on 2023-01-18 22:31 (UTC) by lod)

@dalu you need Kodi 20 to build it.

dalu commented on 2023-01-16 20:43 (UTC)

Build errors galore with the 20.6.0-1 package https://pastebin.com/WDsT40Zz

pejobo commented on 2023-01-15 21:07 (UTC)

Currently outdated / not yet updated to Nexus (v20)

kleini commented on 2022-06-22 08:35 (UTC)

pamac install kodi-addon-pvr-hts

would be much easier to install the addon.

flexmcmurphy commented on 2022-06-21 22:07 (UTC) (edited on 2022-06-22 00:04 (UTC) by flexmcmurphy)

Just want to leave these instructions for anyone (like me) new to AUR Packages:

To install "kodi-addon-pvr-hts 19.0.6-1" I had Kodi 19.4.0 that I installed from Add/Remove Software in Manjaro (pamac)

From command line I created a working directory in my home folder then...

cd /home/flex/kodi
git clone https://aur.archlinux.org/kodi-addon-pvr-hts.git
makepkg

At this point I was told that I was missing the dependencies: cmake, kodi-platform and kodi-dev

I installed these again using the Add/Remove Software utility in Manjaro (you could also use pamac or pacman)

If the make (compilation) is successful you will get a bunch of files in that directory you git cloned to. One such file is: kodi-addon-pvr-hts-19.0.6-1-x86_64.pkg.tar.zst

I right clicked on that from Manjaro Dolphin File Explorer and selected: "Open with Software Installer" and this installed the package into /home/flex/.kodi/addons/packages/

I then rebooted the computer and when I restarted Kodi it asked me if I wanted to enable the HTSP Client Add-on to which I said yes and then could configure it and it works!