Hi all,

Registrations are closed (rightly, given the last few months), so I can't upload
this myself. Offering it here in case an existing maintainer finds it worth
taking.

What it is: the Piers (Kodi 22) build of inputstream.ffmpegdirect. The existing
AUR package kodi-addon-inputstream-ffmpegdirect (maintained by wast3) targets
Omega/Kodi 21 only, and there is currently no Piers equivalent - so on a Kodi 22
system there is no packaged route to this addon at all.

Why a separate package rather than an update to the existing one:
Omega and Piers
are different addon ABIs (inputstream 3.2.0 vs 3.4.0) and depend on different
Kodi packages, so both need to coexist. I've followed the established
kodi-<codename>-addon-* convention (cf.
kodi-matrix-addon-inputstream-adaptive-git,
kodi-nexus-addon-inputstream-adaptive-git) to avoid colliding with wast3's
package. It is explicitly not a replacement, and I have not flagged theirs
out-of-date.

Provenance: it's a minimal delta on wast3's PKGBUILD, attribution kept in the
header.

Tested on Manjaro against kodi-git 22.0-BETA2 (21.90.802):
  - builds clean; 420K package; 0 unresolved libraries
  - installs to /usr/lib/kodi/addons/inputstream.ffmpegdirect/
  - Kodi registers it as inputstream.ffmpegdirect v22.2.7
  - source is upstream's release tag 22.2.7-Piers

Two notes on the diff from the Omega package:

  - makedepends uses kodi-git-dev rather than kodi-dev. This is what actually
    pins it to the right Kodi branch: built against the Omega dev kit the addon
    reports inputstream ABI 3.2.0 and Kodi 22 refuses to load it.

  - The ffmpeg6.1 dependency is dropped. Piers upstream pins FFmpeg 7.0.0, and
    with no ffmpeg7 packaged the addon's own ExternalProject fallback builds a
    private FFmpeg 7 ("FFmpeg 7.0.0 not found, falling back to internal build").
    That's upstream's supported path and needs no extra package.

Happy to hand it over, or to be told it's premature while Kodi 22 is still in
beta - no hard feelings either way.

Thanks

--- PKGBUILD ---
# Maintainer: chefboyrdave21 <[email protected]>
# Based on the Omega package `kodi-addon-inputstream-ffmpegdirect` by wast3.
#
# This is the Piers (Kodi 22) counterpart, following the existing AUR convention
# of branch-scoped Kodi addon packages (cf. kodi-matrix-addon-*,
kodi-nexus-addon-*).
# It does NOT replace wast3's Omega package -- the two target different Kodi
# branches and different addon ABIs (Omega: inputstream 3.2.0, Piers: 3.4.0).

pkgname=kodi-piers-addon-inputstream-ffmpegdirect
pkgver=22.2.7
pkgrel=1
pkgdesc="Inputstream ffmpegdirect kodi plugin (Piers / Kodi 22)"
_koditarget=Piers
_gitname=inputstream.ffmpegdirect
arch=('armv7h' 'aarch64' 'x86_64')
url="https://github.com/xbmc/${_gitname}";
license=('GPL-2.0-or-later')
groups=('kodi')
# kodi-git-dev supplies the Piers addon dev-kit headers and KodiConfig.cmake.
# Building against the Omega dev kit (kodi-dev) produces an addon Kodi
22 refuses
# to load, so the dev package is what pins this to the right Kodi branch.
makedepends=('cmake' 'git' 'pkgconf' 'nasm' 'kodi-git-dev')
depends=('kodi-common')
provides=("kodi-addon-inputstream-ffmpegdirect=${pkgver}")
source=("${_gitname}-${pkgver}-${_koditarget}.tar.gz::${url}/archive/${pkgver}-${_koditarget}.tar.gz")
sha256sums=('90f0bfc4a3e5fe397749f5244608ee8881c6722c9a68c33fd61eb5becd976f23')

build() {
    cd "${_gitname}-${pkgver}-${_koditarget}"
    # Upstream pins FFmpeg 7.0.0. Arch ships FFmpeg 9, and there is no ffmpeg7
    # package, so the addon's own ExternalProject fallback builds a private
    # FFmpeg 7.0.0 (logged as "FFmpeg 7.0.0 not found, falling back to internal
    # build"). This is upstream's supported path, not an error.
    cmake -B build -S . \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_PREFIX_PATH=/usr/lib/kodi \
        -DCMAKE_MODULE_PATH=/usr/lib/kodi/cmake
    cmake --build build
}

package() {
    cd "${_gitname}-${pkgver}-${_koditarget}"
    DESTDIR="${pkgdir}" cmake --install build
}

--- .SRCINFO ---
pkgbase = kodi-piers-addon-inputstream-ffmpegdirect
        pkgdesc = Inputstream ffmpegdirect kodi plugin (Piers / Kodi 22)
        pkgver = 22.2.7
        pkgrel = 1
        url = https://github.com/xbmc/inputstream.ffmpegdirect
        arch = armv7h
        arch = aarch64
        arch = x86_64
        groups = kodi
        license = GPL-2.0-or-later
        makedepends = cmake
        makedepends = git
        makedepends = pkgconf
        makedepends = nasm
        makedepends = kodi-git-dev
        depends = kodi-common
        provides = kodi-addon-inputstream-ffmpegdirect=22.2.7
        source = 
inputstream.ffmpegdirect-22.2.7-Piers.tar.gz::https://github.com/xbmc/inputstream.ffmpegdirect/archive/22.2.7-Piers.tar.gz
        sha256sums = 
90f0bfc4a3e5fe397749f5244608ee8881c6722c9a68c33fd61eb5becd976f23

pkgname = kodi-piers-addon-inputstream-ffmpegdirect

Reply via email to