Package Details: kodi-addon-inputstream-adaptive-git 21.4.6.Omega.r0.g0e0820d5-1

Git Clone URL: https://aur.archlinux.org/kodi-addon-inputstream-adaptive-git.git (read-only, click to copy)
Package Base: kodi-addon-inputstream-adaptive-git
Description: InputStream client for adaptive streams for Kodi 21+
Upstream URL: https://github.com/xbmc/inputstream.adaptive
Licenses: GPL2
Conflicts: kodi-addon-inputstream-adaptive
Provides: kodi-addon-inputstream-adaptive
Submitter: kevku
Maintainer: kevku
Last Packager: kevku
Votes: 16
Popularity: 0.000029
First Submitted: 2016-11-28 17:20 (UTC)
Last Updated: 2024-05-02 13:34 (UTC)

Dependencies (5)

Required by (2)

Sources (2)

Latest Comments

1 2 3 4 5 6 Next › Last »

oferchen commented on 2025-08-31 21:53 (UTC)

replace PKGBUILD:

# Maintainer: ivanich
pkgname=kodi-addon-inputstream-adaptive-any
pkgver=21.5.13
pkgrel=3
pkgdesc="Inputstream adaptive without kodi-dev dependency, so it can be built on any architecture"
_koditarget=Omega
_gitname=inputstream.adaptive
_kodiver=21.2
arch=('x86_64' 'aarch64')  # C++ addon: not 'any'
url="https://github.com/xbmc/${_gitname}"
license=('GPL')
groups=('kodi')
makedepends=('cmake' 'git' 'patch')
provides=('kodi-addon-inputstream-adaptive')
conflicts=('kodi-addon-inputstream-adaptive' 'kodi-addon-inputstream-adaptive-19')
depends=('kodi')
source=("https://github.com/xbmc/${_gitname}/archive/${pkgver}-${_koditarget}.tar.gz"
        "https://github.com/xbmc/xbmc/archive/${_kodiver}-${_koditarget}.tar.gz")
sha256sums=('2cde7954b0a73d353edc2af14306e4e42e6bf9e7f26100a54b937cb80c1309a8'
            'da3a5df663684664b9383b65f1c06568222629d935084a59e4e641fcdcb6c383')

prepare() {
  cd "${srcdir}"

  # Touch XBMC cmake tree so path exists; we don't change it.
  cd "xbmc-${_kodiver}-${_koditarget}"
  cd "${srcdir}"

  # --- Upstream-style fix: add <cstdint> and <limits> to AdaptiveUtils.h if missing ---
  _hdr="${srcdir}/${_gitname}-${pkgver}-${_koditarget}/src/common/AdaptiveUtils.h"
  if [[ -f "$_hdr" ]]; then
    if ! grep -qF '#include <cstdint>' "$_hdr"; then
      awk '
        BEGIN{done=0}
        {
          print $0
          if (!done && $0 ~ /^#include <vector>$/) {
            print "#include <cstdint>"
            print "#include <limits>"
            done=1
          }
        }
      ' "$_hdr" > "$_hdr.new" && mv "$_hdr.new" "$_hdr"
    fi
  fi
}

build() {
  mkdir -p "${_gitname}-${pkgver}-${_koditarget}/build"
  cd "${_gitname}-${pkgver}-${_koditarget}/build"

  # Safety net: force-include headers for all TUs (covers staged ExternalProject copy)
  export CXXFLAGS="${CXXFLAGS} -include cstdint -include limits"

  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_SHARED_LIBS=1 \
    -DADDONS_TO_BUILD=${_gitname} \
    -DADDONS_SRC_PREFIX=../.. \
    -DCMAKE_POLICY_DEFAULT_CMP0135=NEW \
    -Wno-dev \
    ../../xbmc-${_kodiver}-${_koditarget}/cmake/addons

  # (Optional) Also patch the staged copy produced by ExternalProject (belt & suspenders)
  _staged="build/inputstream.adaptive/src/common/AdaptiveUtils.h"
  if [[ -f "$_staged" ]] && ! grep -qF '#include <cstdint>' "$_staged"; then
    awk '
      BEGIN{done=0}
      {
        print $0
        if (!done && $0 ~ /^#include <vector>$/) {
          print "#include <cstdint>"
          print "#include <limits>"
          done=1
        }
      }
    ' "$_staged" > "$_staged.new" && mv "$_staged.new" "$_staged"
  fi

  make
}

package() {
  cd "${_gitname}-${pkgver}-${_koditarget}/build"
  install -d "${pkgdir}/usr"
  mv .install/lib "${pkgdir}/usr/"
  mv .install/share "${pkgdir}/usr/"
}

boina commented on 2024-04-26 16:56 (UTC) (edited on 2024-04-26 18:19 (UTC) by boina)

Thanks @rnestler. I changed the faulty default option in makepkg.conf and installed the missing dependency (rapidjson) and it is now compiling!!

Thanks a lot!!

rnestler commented on 2024-04-11 12:37 (UTC)

There seems to be a missing dependency for rapidjson:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find RAPIDJSON (missing: RAPIDJSON_INCLUDES)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  FindRAPIDJSON.cmake:19 (find_package_handle_standard_args)
  CMakeLists.txt:18 (find_package)

rnestler commented on 2024-04-11 12:33 (UTC)

@boina

Doesn't build in armv7. The most relevant part of the error (I think) is "cc: error: unrecognized command-line option ‘-mno-omit-leaf-frame-pointer’; did you mean ‘-fno-omit-frame-pointer’?" I don't know where to change this flag.

This seems to be a wrong default (see https://archlinuxarm.org/forum/viewtopic.php?f=57&t=16830&p=72344&hilit=no+omit+leaf+frame+pointer#p72344) you can remove the broken option in /etc/makepkg.conf

boina commented on 2024-03-31 16:27 (UTC) (edited on 2024-03-31 16:29 (UTC) by boina)

Doesn't build in armv7. The most relevant part of the error (I think) is "cc: error: unrecognized command-line option ‘-mno-omit-leaf-frame-pointer’; did you mean ‘-fno-omit-frame-pointer’?"

I don't know where to change this flag.

graysky commented on 2023-12-22 17:49 (UTC)

All I know is it doesn't build as-is.

kevku commented on 2023-12-22 17:42 (UTC)

there are other packages besides kodi-git that provide kodi 21. hard depend on kodi-git is a douche move.

graysky commented on 2023-12-22 13:15 (UTC)

Does not build. I believe you need to depend on kodi-git-dev for one. Not sure about other errors I encountered. For reference, I updated the official PKGBUILD with tagged deps here: https://gist.github.com/graysky2/9dff505126875db1f348edbb192e30fe

csts commented on 2023-06-23 02:33 (UTC)

Using Kodi Omega, I had to manually install kodi-git-dev first, then install kodi-addon-inputstream-adaptive-git.
Works fine, thank you.